diff options
| author | mirenn <me@mirenn.dev> | 2024-12-18 21:06:41 +0100 |
|---|---|---|
| committer | mirenn <me@mirenn.dev> | 2024-12-18 21:06:41 +0100 |
| commit | 70a25f93a0b52aec897fb2caf9d191876ff2094a (patch) | |
| tree | 8a5fe85f0632fcca678f0204a4288e6b3423f772 /fuzzel/powermenu.sh | |
| parent | 48619661ef8fb16704d8beff25e5dfce7b86c6eb (diff) | |
| download | dotfiles-70a25f93a0b52aec897fb2caf9d191876ff2094a.tar.gz dotfiles-70a25f93a0b52aec897fb2caf9d191876ff2094a.zip | |
niri and fuzzel
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 + |
