read all other fields from stdin too

This commit is contained in:
Rasmus Steinke 2015-07-25 13:54:20 +02:00
parent 8ed0d8584b
commit 88375c27a4

View File

@ -78,7 +78,7 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
stuff["pass"]=${password}
if [[ $rofi_exit -eq 11 ]]; then
xdotool_type "${stuff[${USERNAME_field}]}"
echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file -
exit
elif [[ $rofi_exit -eq 12 ]]; then
echo -n "${password}" | xdotool type --clearmodifiers --file -
@ -106,7 +106,8 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
fi
if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then
xdotool_type "${stuff[${USERNAME_field}]}"
echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file -
xdotool key Tab
echo -n "${password}" | xdotool type --clearmodifiers --file -
#xdotool_type "$password"
@ -121,7 +122,8 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
elif [[ $word == "pass" ]]; then
echo -n "${password}" | xdotool type --clearmodifiers --file -
else
xdotool_type "${stuff[${word}]}"
echo -n "${stuff[${word}]}" | xdotool type --clearmodifiers --file -
fi
#xdotool key Tab
done