extract pulse_sink script

This commit is contained in:
Leonardo Eugênio 2022-10-21 20:21:51 -03:00
parent 43a1960e18
commit 690ab81d76
5 changed files with 20 additions and 18 deletions

View file

@ -4,7 +4,7 @@ set -xe
find_file() {
fd --strip-cwd-prefix '\.gpg$' |
sd ".gpg$" "" |
bmenu -p "Password" $@
wdmenu -p "Password" $@
}
main() {
@ -20,7 +20,7 @@ main() {
username=`pass show "$entry" 2>/dev/null | perl -ne 'print $2 if /^(login|user|email): (.*)/'`
password=`pass show "$entry" 2>/dev/null | head -n 1`
action=`printf "Autotype\nUsername -> $username\nPassword" | bmenu -p Action`
action=`printf "Autotype\nUsername -> $username\nPassword" | wdmenu -p Action`
case $action in
Autotype)