Added Option in Config, to set default behaviour.

This commit is contained in:
maffmeier 2016-01-07 23:42:58 +01:00
parent cfa9af61b9
commit 750182e34a
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ BROWSER='chromium'
## Misc settings ## Misc settings
default_do='copyPass' # autopass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl
help_color='#0C73C2' help_color='#0C73C2'
auto_enter='false' auto_enter='false'
notify='false' notify='false'

View File

@ -207,7 +207,7 @@ ${line3}</span>"
fi fi
# actions based on keypresses # 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 13 ]]; then openURL;
elif [[ "${rofi_exit}" -eq 1 ]]; then exit ${rofi_exit}; elif [[ "${rofi_exit}" -eq 1 ]]; then exit ${rofi_exit};
elif [[ "${rofi_exit}" -eq 10 ]]; then autopass; elif [[ "${rofi_exit}" -eq 10 ]]; then autopass;