diff options
author | Rasmus Steinke <rasi@xssn.at> | 2017-04-22 12:55:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-22 12:55:09 +0200 |
commit | 59425e23fcb97cff82563a25f28c8aa98db68694 (patch) | |
tree | cf981e1c652bd8a77439136aa47234b50e696251 | |
parent | f93512bf6f3fd1a69069d3ec9af979a463929f83 (diff) | |
parent | 479220243829aab31976f16ce1dbb3d590afc31b (diff) | |
download | rofi-pass-59425e23fcb97cff82563a25f28c8aa98db68694.tar.gz |
Merge pull request #69 from fd0/disable-repeat
Add repeat disabling for remaining fields
-rwxr-xr-x | rofi-pass | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -125,12 +125,24 @@ openURL () { typeUser () { checkIfPass + + x_repeat_enabled=$(xset q | awk '/auto repeat:/ {print $3}') + xset r off + echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file - + + xset r "$x_repeat_enabled" + unset x_repeat_enabled + clearUp } typePass () { checkIfPass + + x_repeat_enabled=$(xset q | awk '/auto repeat:/ {print $3}') + xset r off + echo -n "${password}" | xdotool type --clearmodifiers --file - if [[ $notify == "true" ]]; then if [[ "${stuff[notify]}" == "false" ]]; then @@ -145,12 +157,24 @@ typePass () { : fi fi + + xset r "$x_repeat_enabled" + unset x_repeat_enabled + clearUp } typeField () { checkIfPass + + x_repeat_enabled=$(xset q | awk '/auto repeat:/ {print $3}') + xset r off + echo -n "${stuff[${typefield}]}" | xdotool type --clearmodifiers --file - + + xset r "$x_repeat_enabled" + unset x_repeat_enabled + clearUp } |