aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordon Schulz <gordon.schulz@gmail.com>2015-08-22 17:33:32 +0200
committerGordon Schulz <gordon.schulz@gmail.com>2015-08-22 17:37:39 +0200
commitfbf6fe08cba59ff960fbc2855741da3def979a40 (patch)
treef9ea8756d248030b9d7ae520d3c9327a13377ed6
parent2fc6c177314f3a14a32e1f62b3e1ed019505fa27 (diff)
downloadrofi-pass-fbf6fe08cba59ff960fbc2855741da3def979a40.tar.gz
Implement Space autotype identifier
Allow :space identifier in autotype sequences. I find that useful to auto-check/auto-uncheck those 'Keep me logged in' checkboxes. Same as :tab, just send a 'xdotool key space' sequence.
-rwxr-xr-xrofi-pass2
1 files changed, 2 insertions, 0 deletions
diff --git a/rofi-pass b/rofi-pass
index 96d9ebb..9ca8454 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -141,6 +141,8 @@ ${line2}</span>"
for word in ${stuff["$AUTOTYPE_field"]}; do
if [[ $word == ":tab" ]]; then
xdotool key Tab
+ elif [[ $word == ":space" ]]; then
+ xdotool key space
elif [[ $word == "pass" ]]; then
echo -n "${password}" | xdotool type --clearmodifiers --file -
else