aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-04-22 12:55:09 +0200
committerGitHub <noreply@github.com>2017-04-22 12:55:09 +0200
commit59425e23fcb97cff82563a25f28c8aa98db68694 (patch)
treecf981e1c652bd8a77439136aa47234b50e696251
parentf93512bf6f3fd1a69069d3ec9af979a463929f83 (diff)
parent479220243829aab31976f16ce1dbb3d590afc31b (diff)
downloadrofi-pass-59425e23fcb97cff82563a25f28c8aa98db68694.tar.gz
Merge pull request #69 from fd0/disable-repeat
Add repeat disabling for remaining fields
-rwxr-xr-xrofi-pass24
1 files changed, 24 insertions, 0 deletions
diff --git a/rofi-pass b/rofi-pass
index 0900477..6be2249 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -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
}