From 750182e34a1199c2a1c3c5c2cc1a2171c505badf Mon Sep 17 00:00:00 2001 From: maffmeier Date: Thu, 7 Jan 2016 23:42:58 +0100 Subject: [PATCH 1/2] Added Option in Config, to set default behaviour. --- config.example | 1 + rofi-pass | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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}" 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; From bfd72f9626c8f6e40d19678b72eb62808b2b3b59 Mon Sep 17 00:00:00 2001 From: maffmeier Date: Fri, 8 Jan 2016 09:59:37 +0100 Subject: [PATCH 2/2] Changed default_do to previous default behaviour. --- config.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.example b/config.example index 33606dd..eed408c 100644 --- a/config.example +++ b/config.example @@ -24,7 +24,7 @@ BROWSER='chromium' ## Misc settings -default_do='copyPass' # autopass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl +default_do='autopass' # copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl help_color='#0C73C2' auto_enter='false' notify='false'