aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaffmeier <m.hoffmeier@maffmeier.de>2016-01-07 23:42:58 +0100
committermaffmeier <m.hoffmeier@maffmeier.de>2016-01-07 23:42:58 +0100
commit750182e34a1199c2a1c3c5c2cc1a2171c505badf (patch)
tree7e19c0948766d2beb34ca58684d97c8bfa42efac
parentcfa9af61b96f1b5ad5a4b915f2c13d6592ecbd42 (diff)
downloadrofi-pass-750182e34a1199c2a1c3c5c2cc1a2171c505badf.tar.gz
Added Option in Config, to set default behaviour.
-rw-r--r--config.example1
-rwxr-xr-xrofi-pass2
2 files changed, 2 insertions, 1 deletions
diff --git a/config.example b/config.example
index 712c16a..33606dd 100644
--- a/config.example
+++ b/config.example
@@ -24,6 +24,7 @@ BROWSER='chromium'
## Misc settings
+default_do='copyPass' # autopass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl
help_color='#0C73C2'
auto_enter='false'
notify='false'
diff --git a/rofi-pass b/rofi-pass
index c0b043a..dfa4dbe 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -207,7 +207,7 @@ ${line3}</span>"
fi
# actions based on keypresses
- if [[ "${rofi_exit}" -eq 0 ]]; then autopass;
+ if [[ "${rofi_exit}" -eq 0 ]]; then ${default_do};
elif [[ "${rofi_exit}" -eq 13 ]]; then openURL;
elif [[ "${rofi_exit}" -eq 1 ]]; then exit ${rofi_exit};
elif [[ "${rofi_exit}" -eq 10 ]]; then autopass;