diff --git a/config.example b/config.example index 6c6187c..142135c 100644 --- a/config.example +++ b/config.example @@ -26,7 +26,7 @@ BROWSER='chromium' ## Misc settings -default_do='menu' # menu, autopass, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl +default_do='menu' # menu, autotype, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl auto_enter='false' notify='false' diff --git a/rofi-pass b/rofi-pass index f403a27..bd7666b 100755 --- a/rofi-pass +++ b/rofi-pass @@ -87,7 +87,6 @@ autopass () { xdotool key Return fi else - echo "${stuff["$AUTOTYPE_field"]}" for word in ${stuff["$AUTOTYPE_field"]}; do if [[ $word == ":tab" ]]; then xdotool key Tab; @@ -274,7 +273,7 @@ Run ${default_do} with Enter. For more help hit pass_content="$(for key in "${!stuff[@]}"; do echo "${key}: ${stuff[$key]}"; done)" # actions based on keypresses - if [[ "${rofi_exit}" -eq 0 ]]; then export default_do="$default_do"; typeMenu; + if [[ "${rofi_exit}" -eq 0 ]]; then typeMenu; elif [[ "${rofi_exit}" -eq 13 ]]; then openURL; elif [[ "${rofi_exit}" -eq 10 ]]; then sleep 0.2; autopass; elif [[ "${rofi_exit}" -eq 14 ]]; then copyMenu; @@ -326,8 +325,6 @@ else unset helptext; mainMenu; fi typeMenu () { - clear - echo "${default_do}" if [[ -n $default_do ]]; then if [[ $default_do == "menu" ]]; then checkIfPass @@ -346,6 +343,8 @@ typeMenu () { typeField fi clearUp + elif [[ $default_do == "${AUTOTYPE_field}" ]]; then + autopass else $(${default_do}) fi