aboutsummaryrefslogtreecommitdiff
path: root/fuzzel/powermenu.sh
blob: 22b17c38f5786849e4d9cc184e9960674c3c2d89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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