add wdmenu
This commit is contained in:
parent
241a9313a3
commit
5ad0b125f6
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
menu=bmenu
|
||||
menu=wdmenu
|
||||
|
||||
search(){
|
||||
music=$(mpc playlist --format '%artist% : %title%' | sed '/^ : $/d' | $menu)
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/fish
|
||||
|
||||
command -qs wofi &&
|
||||
exec wofi -d $argv
|
||||
command -qs bmenu &&
|
||||
exec bemenu $argv
|
|
@ -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
|
||||
|
|
Reference in New Issue