diff --git a/.local/scripts/powermenu.fish b/.local/scripts/powermenu.fish index 5e459be..f2db3ab 100755 --- a/.local/scripts/powermenu.fish +++ b/.local/scripts/powermenu.fish @@ -1,6 +1,6 @@ #!/usr/bin/env fish -set input (echo -e 'Suspend\nShutdown\nRestart' | fuzzel --dmenu -l 3 || exit 0) +set input (echo -e '󰤄 Suspend\n󰐥 Poweroff\n󰜉 Reboot' | fuzzel --dmenu -l 3 || exit 0) set check (echo -e 'Cancel\nProceed' | fuzzel --dmenu -l 2 || exit 0) @@ -8,14 +8,16 @@ if test $check = "Cancel" exit 0 end -switch $input - case Suspend - systemctl suspend +set option (string sub --start=3 $input) - case Shutdown - systemctl poweroff +switch $option + case Suspend + systemctl suspend - case Restart - systemctl reboot + case Poweroff + systemctl poweroff + + case Reboot + systemctl reboot end