aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2016-01-26 04:41:36 +0100
committerRasmus Steinke <rasi@xssn.at>2016-01-26 04:41:36 +0100
commit7c00f3c0770bfe37a842cc58a8e42806bf4cc353 (patch)
tree429ae7b6ffbbfb350ffb1175357264cd0f933677
parent6a5ae135e0dc63a1f2d5158217a0e7e3989c2813 (diff)
parente1807e1f3dabcd91ab3e0f316f9fe179c080061f (diff)
downloadrofi-pass-7c00f3c0770bfe37a842cc58a8e42806bf4cc353.tar.gz
Merge branch 'master' of https://github.com/carnager/rofi-pass
-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..eed408c 100644
--- a/config.example
+++ b/config.example
@@ -24,6 +24,7 @@ BROWSER='chromium'
## Misc settings
+default_do='autopass' # copyPass, 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 a6b4985..481259a 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;