get rid of delay

This commit is contained in:
Rasmus Steinke 2015-08-09 07:16:08 +02:00
parent 752be60645
commit 3b1b48b93d

View File

@ -84,10 +84,10 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
stuff["pass"]=${password} stuff["pass"]=${password}
if [[ $rofi_exit -eq 11 ]]; then if [[ $rofi_exit -eq 11 ]]; then
echo -n "${stuff[${USERNAME_field}]}" | xdotool type --delay 100 --clearmodifiers --file - echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file -
exit exit
elif [[ $rofi_exit -eq 12 ]]; then elif [[ $rofi_exit -eq 12 ]]; then
echo -n "${password}" | xdotool type --delay 100 --clearmodifiers --file - echo -n "${password}" | xdotool type --clearmodifiers --file -
exit exit
elif [[ $rofi_exit -eq 14 ]]; then elif [[ $rofi_exit -eq 14 ]]; then
echo -n "${stuff[${USERNAME_field}]}" | xclip echo -n "${stuff[${USERNAME_field}]}" | xclip
@ -112,10 +112,10 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
fi fi
if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then
echo -n "${stuff[${USERNAME_field}]}" | xdotool type --delay 100 --clearmodifiers --file - echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file -
xdotool key Tab xdotool key Tab
echo -n "${password}" | xdotool type --delay 100 --clearmodifiers --file - echo -n "${password}" | xdotool type --clearmodifiers --file -
#xdotool_type "$password" #xdotool_type "$password"
sleep 1 sleep 1
if [[ ${auto_enter} == "true" ]]; then if [[ ${auto_enter} == "true" ]]; then
@ -126,9 +126,9 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor
if [[ $word == ":tab" ]]; then if [[ $word == ":tab" ]]; then
xdotool key Tab xdotool key Tab
elif [[ $word == "pass" ]]; then elif [[ $word == "pass" ]]; then
echo -n "${password}" | xdotool type --delay 100 --clearmodifiers --file - echo -n "${password}" | xdotool type --clearmodifiers --file -
else else
echo -n "${stuff[${word}]}" | xdotool type --delay 100 --clearmodifiers --file - echo -n "${stuff[${word}]}" | xdotool type --clearmodifiers --file -
fi fi
#xdotool key Tab #xdotool key Tab
@ -198,7 +198,7 @@ showEntry () {
if [[ -z $(echo -n "${stuff[${word}]}") ]]; then if [[ -z $(echo -n "${stuff[${word}]}") ]]; then
xdotool type ${word} xdotool type ${word}
else else
echo -n "${stuff[${word}]}" | xdotool type --clearmodifiers --delay 100 --file - echo -n "${stuff[${word}]}" | xdotool type --delay 100 --clearmodifiers --file -
xdotool key ctrl+alt xdotool key ctrl+alt
fi fi
fi fi