diff options
Diffstat (limited to '')
| -rwxr-xr-x | fuzzel/powermenu.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fuzzel/powermenu.sh b/fuzzel/powermenu.sh new file mode 100755 index 0000000..22b17c3 --- /dev/null +++ b/fuzzel/powermenu.sh @@ -0,0 +1,18 @@ +#! /bin/sh + +poweroff=" Poweroff" +reboot=" Reboot" +lock=" Lock" +exit=" Exit" + +chosen=$(echo -e "$poweroff\n$reboot\n$lock\n$exit" | fuzzel --dmenu --lines 4 --width 15) + +case "$chosen" in + "$poweroff") shutdown now ;; + "$reboot") reboot ;; + "$lock") loginctl lock-session ;; + # "$exit") hyprctl dispatch exit ;; + "$exit") niri msg action quit ;; + *) exit 1 ;; +esac + |
