Compare commits

...

2 commits

View file

@ -29,8 +29,8 @@ main() {
test -n "$entry" || exit 0 test -n "$entry" || exit 0
username=`pass show "$entry" 2>/dev/null | rg -m1 '(login|user|email): (.*)' -r '$2'` username=`pass show "$entry" 2>/dev/null | rg -m1 '(login|user|email): (.*)' -r '$2'` || true
password=`pass show "$entry" 2>/dev/null | head -n 1` password=`pass show "$entry" 2>/dev/null | head -n 1` || true
otp=`pass otp "$entry" 2>/dev/null` || true otp=`pass otp "$entry" 2>/dev/null` || true
action="$(print_actions_for_entry | wdmenu -p Action)" action="$(print_actions_for_entry | wdmenu -p Action)"
@ -50,8 +50,10 @@ main() {
} }
autotype(){ autotype(){
env wtype -s 100 "$username" if test -n "$username"; then
env wtype -s 100 -k tab env wtype -s 100 "$username"
env wtype -s 100 -k tab
fi
env wtype -s 100 "$password" env wtype -s 100 "$password"
} }