From 058c817dec5bbdb17a79b5a2d405ff1381c66fae Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sat, 6 Aug 2016 06:22:56 +0200 Subject: [PATCH] remove redundant echo --- config.example | 2 +- rofi-pass | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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