remove redundant echo
This commit is contained in:
parent
41b62d21b2
commit
058c817dec
@ -26,7 +26,7 @@ BROWSER='chromium'
|
|||||||
|
|
||||||
## Misc settings
|
## 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'
|
auto_enter='false'
|
||||||
notify='false'
|
notify='false'
|
||||||
|
|
||||||
|
@ -87,7 +87,6 @@ autopass () {
|
|||||||
xdotool key Return
|
xdotool key Return
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "${stuff["$AUTOTYPE_field"]}"
|
|
||||||
for word in ${stuff["$AUTOTYPE_field"]}; do
|
for word in ${stuff["$AUTOTYPE_field"]}; do
|
||||||
if [[ $word == ":tab" ]]; then
|
if [[ $word == ":tab" ]]; then
|
||||||
xdotool key Tab;
|
xdotool key Tab;
|
||||||
@ -274,7 +273,7 @@ Run ${default_do} with <span color='$help_color'>Enter</span>. For more help hit
|
|||||||
pass_content="$(for key in "${!stuff[@]}"; do echo "${key}: ${stuff[$key]}"; done)"
|
pass_content="$(for key in "${!stuff[@]}"; do echo "${key}: ${stuff[$key]}"; done)"
|
||||||
|
|
||||||
# actions based on keypresses
|
# 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 13 ]]; then openURL;
|
||||||
elif [[ "${rofi_exit}" -eq 10 ]]; then sleep 0.2; autopass;
|
elif [[ "${rofi_exit}" -eq 10 ]]; then sleep 0.2; autopass;
|
||||||
elif [[ "${rofi_exit}" -eq 14 ]]; then copyMenu;
|
elif [[ "${rofi_exit}" -eq 14 ]]; then copyMenu;
|
||||||
@ -326,8 +325,6 @@ else unset helptext; mainMenu; fi
|
|||||||
|
|
||||||
|
|
||||||
typeMenu () {
|
typeMenu () {
|
||||||
clear
|
|
||||||
echo "${default_do}"
|
|
||||||
if [[ -n $default_do ]]; then
|
if [[ -n $default_do ]]; then
|
||||||
if [[ $default_do == "menu" ]]; then
|
if [[ $default_do == "menu" ]]; then
|
||||||
checkIfPass
|
checkIfPass
|
||||||
@ -346,6 +343,8 @@ typeMenu () {
|
|||||||
typeField
|
typeField
|
||||||
fi
|
fi
|
||||||
clearUp
|
clearUp
|
||||||
|
elif [[ $default_do == "${AUTOTYPE_field}" ]]; then
|
||||||
|
autopass
|
||||||
else
|
else
|
||||||
$(${default_do})
|
$(${default_do})
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user