wpass: enter qutebrowser insert mode befor autotype

This commit is contained in:
Leonardo Eugênio 2023-02-26 15:44:32 -03:00
parent 9ecae78687
commit 007895fcb5

View file

@ -1,3 +1,5 @@
#!/bin/sh
_gpg-unlock
set -xe
@ -8,7 +10,6 @@ find_file() {
}
main() {
test -n "$PASSWORD_STORE_DIR" &&
cd "$PASSWORD_STORE_DIR" ||
cd "$HOME/.password-store"
@ -35,6 +36,10 @@ main() {
}
autotype(){
if pgrep qutebrowser >/dev/null; then
qutebrowser ":mode-enter insert"
fi
env wtype -s 100 "$username"
env wtype -s 100 -k tab
env wtype -s 100 "$password"