Respect default_do config setting and allow "menu" value. Fixes #52
This commit is contained in:
parent
ca70a0e777
commit
5083c181fd
@ -26,7 +26,7 @@ BROWSER='chromium'
|
||||
|
||||
## Misc settings
|
||||
|
||||
default_do='autopass' # copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl
|
||||
default_do='menu' # menu, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl
|
||||
auto_enter='false'
|
||||
notify='false'
|
||||
passlength='20'
|
||||
|
10
rofi-pass
10
rofi-pass
@ -13,7 +13,7 @@ URL_field='url'
|
||||
USERNAME_field='user'
|
||||
AUTOTYPE_field='autotype'
|
||||
delay=2
|
||||
default_do='autopass' # copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl
|
||||
default_do='menu' # menu, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl
|
||||
auto_enter='false'
|
||||
notify='false'
|
||||
passlength='20'
|
||||
@ -324,6 +324,10 @@ else unset helptext; mainMenu; fi
|
||||
}
|
||||
|
||||
typeMenu () {
|
||||
clear
|
||||
echo "${default_do}"
|
||||
if [[ -n $default_do ]]; then
|
||||
if [[ $default_do == "menu" ]]; then
|
||||
checkIfPass
|
||||
typefield=$(printf '%s\n' "${!stuff[@]}" | sort | _rofi -kb-accept-entry '!Return' -dmenu -p "Choose Field to type > ")
|
||||
val=$?
|
||||
@ -340,6 +344,10 @@ typeMenu () {
|
||||
typeField
|
||||
fi
|
||||
clearUp
|
||||
else
|
||||
$(${default_do})
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
copyMenu () {
|
||||
|
Loading…
Reference in New Issue
Block a user