add wdmenu

This commit is contained in:
lelgenio 2020-04-27 19:24:16 -03:00
parent 241a9313a3
commit 5ad0b125f6
4 changed files with 10 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
set -e
menu=bmenu
menu=wdmenu
search(){
music=$(mpc playlist --format '%artist% : %title%' | sed '/^ : $/d' | $menu)

View File

@ -1,7 +1,7 @@
#!/bin/sh
opts="Fone\nSpeaker\nHDMI"
out=$(echo -e $opts | bmenu -p "Saida:")
out=$(echo -e $opts | wdmenu -p "Saida:")
vol=$(pamixer --get-volume)
if [ "$out" == "HDMI" ]

6
scripts/.local/bin/wdmenu Executable file
View File

@ -0,0 +1,6 @@
#!/bin/fish
command -qs wofi &&
exec wofi -d $argv
command -qs bmenu &&
exec bemenu $argv

View File

@ -18,14 +18,14 @@ done
entry=$(printf '%s\n' "${password_files[@]}" |
sort | uniq -c | sort -r |
sed 's/ *[0-9]* //'|
bmenu "$@")
wdmenu -p Password $@)
[ -n "$entry" ] && echo "$entry" >> $CACHE || exit
username=$( pass show "$entry" 2>/dev/null | perl -ne 'print $1 if /^login: (.*)/' )
password=$( pass show "$entry" 2>/dev/null | head -n 1 )
case $(echo -e "Autotype\nUsername -> $username\nPassword" | bmenu) in
case $(echo -e "Autotype\nUsername -> $username\nPassword" | wdmenu -p Action) in
Autotype)
ydotool type "$username"
ydotool key tab