From 752be60645199d6587ee3a9bbdb9be584b0eb868 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sun, 9 Aug 2015 04:09:49 +0200 Subject: [PATCH] slow down typing a bit --- rofi-pass | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rofi-pass b/rofi-pass index 3157c23..cf49615 100755 --- a/rofi-pass +++ b/rofi-pass @@ -84,10 +84,10 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor stuff["pass"]=${password} if [[ $rofi_exit -eq 11 ]]; then - echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file - + echo -n "${stuff[${USERNAME_field}]}" | xdotool type --delay 100 --clearmodifiers --file - exit elif [[ $rofi_exit -eq 12 ]]; then - echo -n "${password}" | xdotool type --clearmodifiers --file - + echo -n "${password}" | xdotool type --delay 100 --clearmodifiers --file - exit elif [[ $rofi_exit -eq 14 ]]; then echo -n "${stuff[${USERNAME_field}]}" | xclip @@ -112,10 +112,10 @@ ${open_url}: Open URL | ${copy_name}: Copy Username | ${copy_pass}: Copy Passwor fi if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then - echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file - + echo -n "${stuff[${USERNAME_field}]}" | xdotool type --delay 100 --clearmodifiers --file - xdotool key Tab - echo -n "${password}" | xdotool type --clearmodifiers --file - + echo -n "${password}" | xdotool type --delay 100 --clearmodifiers --file - #xdotool_type "$password" sleep 1 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 xdotool key Tab elif [[ $word == "pass" ]]; then - echo -n "${password}" | xdotool type --clearmodifiers --file - + echo -n "${password}" | xdotool type --delay 100 --clearmodifiers --file - else - echo -n "${stuff[${word}]}" | xdotool type --clearmodifiers --file - + echo -n "${stuff[${word}]}" | xdotool type --delay 100 --clearmodifiers --file - fi #xdotool key Tab