diff options
author | Rasmus Steinke <rasi@xssn.at> | 2017-06-21 22:50:01 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2017-06-21 22:50:01 +0200 |
commit | 3f2524e273e2fbbc40c8f2b168cf99c49a41768d (patch) | |
tree | c2b0acdb142dc9ddc2e231e57b8e1b3f7d63aef7 | |
parent | 01eeb3e09ec1211254791aa65c635a5f30de46c7 (diff) | |
download | rofi-pass-3f2524e273e2fbbc40c8f2b168cf99c49a41768d.tar.gz |
allow to set default autotype sequence in config file
-rw-r--r-- | config.example | 1 | ||||
-rwxr-xr-x | rofi-pass | 4 |
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 @@ -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 |