aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2017-06-21 22:50:01 +0200
committerRasmus Steinke <rasi@xssn.at>2017-06-21 22:50:01 +0200
commit3f2524e273e2fbbc40c8f2b168cf99c49a41768d (patch)
treec2b0acdb142dc9ddc2e231e57b8e1b3f7d63aef7
parent01eeb3e09ec1211254791aa65c635a5f30de46c7 (diff)
downloadrofi-pass-3f2524e273e2fbbc40c8f2b168cf99c49a41768d.tar.gz
allow to set default autotype sequence in config file
-rw-r--r--config.example1
-rwxr-xr-xrofi-pass4
2 files changed, 5 insertions, 0 deletions
diff --git a/config.example b/config.example
index b425fca..8a59d18 100644
--- a/config.example
+++ b/config.example
@@ -37,6 +37,7 @@ BROWSER='chromium'
default_do='menu' # menu, autotype, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl
auto_enter='false'
notify='false'
+default_autotype='user :tab pass'
# color of the help messages
# leave empty for autodetection
diff --git a/rofi-pass b/rofi-pass
index 5e9efbe..17d0be5 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -73,6 +73,10 @@ checkIfPass () {
autopass () {
+ if [[ -n $default_autotype ]]
+ then
+ stuff["autotype"]="${default_autotype}"
+ fi
x_repeat_enabled=$(xset q | awk '/auto repeat:/ {print $3}')
xset r off