update menu scripts

This commit is contained in:
Never Gude 2026-01-25 15:44:54 +01:00
parent b8c24493ca
commit 18514b11a5
4 changed files with 12 additions and 18 deletions

Binary file not shown.

View file

@ -385,11 +385,8 @@ binds {
Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; } Mod+D hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
Mod+B hotkey-overlay-title="Open a Browser: qutebrowser" { spawn "qutebrowser"; } Mod+B hotkey-overlay-title="Open a Browser: qutebrowser" { spawn "qutebrowser"; }
Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; }
Mod+M hotkey-overlay-title="Search mpd Library: fuzzel" { spawn-sh "musicmenu.fish"; } Mod+P hotkey-overlay-title="Show the Power menu: fuzzel" { spawn "powermenu.fish"; }
Mod+Shift+M hotkey-overlay-title="Browse mpd Playlist: fuzzel" { spawn-sh "playlistmenu.fish"; } Mod+A hotkey-overlay-title="Show the Action menu: fuzzel" { spawn "actionmenu.fish"; }
Mod+P hotkey-overlay-title="Show the Power menu: fuzzel" { spawn-sh "powermenu.fish"; }
Mod+A hotkey-overlay-title="Show the Action menu: fuzzel" { spawn-sh "actionmenu.fish"; }
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc. // Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
// Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`. // Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`.
// For example, this is a standard bind to toggle the screen reader (orca). // For example, this is a standard bind to toggle the screen reader (orca).

View file

@ -66,7 +66,7 @@ function audio_sink
wpctl set-default $ids[(contains -i $input $names)] wpctl set-default $ids[(contains -i $input $names)]
end 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) set input (menu $options)
switch $input switch $input
@ -74,14 +74,8 @@ switch $input
open_location open_location
case $options[2] case $options[2]
mpc clear
case $options[3]
exec swaylock
case $options[4]
audio_source audio_source
case $options[5] case $options[3]
audio_sink audio_sink
end end

View file

@ -1,5 +1,5 @@
#!/usr/bin/env fish #!/usr/bin/env fish
set input_options "󰤄 Suspend" "󰐥 Poweroff" "󰜉 Reboot" set input_options "󰌾 Lock" "󰤄 Suspend" "󰐥 Poweroff" "󰜉 Reboot"
set input (menu $input_options) set input (menu $input_options)
@ -14,12 +14,15 @@ end
switch $input switch $input
case $input_options[1] case $input_options[1]
swaylock -f swaylock -f
case $input_options[2]
swaylock -f
systemctl suspend systemctl suspend
case $input_options[2] case $input_options[3]
systemctl poweroff systemctl poweroff
case $input_options[2] case $input_options[4]
systemctl reboot systemctl reboot
end end