update menu scripts
This commit is contained in:
parent
b8c24493ca
commit
18514b11a5
4 changed files with 12 additions and 18 deletions
|
|
@ -66,22 +66,16 @@ function audio_sink
|
|||
wpctl set-default $ids[(contains -i $input $names)]
|
||||
end
|
||||
|
||||
set options " Open Location" " Clear Playlist" " Lock" " Select Audio Source" " Select Audio Sink"
|
||||
set options " Open Location" " Select Audio Source" " Select Audio Sink"
|
||||
set input (menu $options)
|
||||
|
||||
switch $input
|
||||
case $options[1]
|
||||
open_location
|
||||
|
||||
case $options[2]
|
||||
mpc clear
|
||||
|
||||
case $options[3]
|
||||
exec swaylock
|
||||
|
||||
case $options[4]
|
||||
case $options[2]
|
||||
audio_source
|
||||
|
||||
case $options[5]
|
||||
case $options[3]
|
||||
audio_sink
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env fish
|
||||
set input_options " Suspend" " Poweroff" " Reboot"
|
||||
set input_options " Lock" " Suspend" " Poweroff" " Reboot"
|
||||
|
||||
set input (menu $input_options)
|
||||
|
||||
|
|
@ -12,14 +12,17 @@ if test $check = $check_options[1]
|
|||
end
|
||||
|
||||
switch $input
|
||||
case $input_options[1]
|
||||
case $input_options[1]
|
||||
swaylock -f
|
||||
|
||||
case $input_options[2]
|
||||
swaylock -f
|
||||
systemctl suspend
|
||||
|
||||
case $input_options[2]
|
||||
case $input_options[3]
|
||||
systemctl poweroff
|
||||
|
||||
case $input_options[2]
|
||||
case $input_options[4]
|
||||
systemctl reboot
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue