summaryrefslogtreecommitdiff
path: root/bin/quitmenu
blob: e9823b81ae3b65b526ab6982af53ca6fdcc90dfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

mkopts() {
	echo 'Quit
Poweroff
Reboot
Suspend
Lock
'
}

if choice="`mkopts | dmenu -i`"; then
	case "$choice" in
		Quit)
			pkill mybar
			bspc quit
			;;
		Poweroff)
			poweroff
			;;
		Reboot)
			reboot
			;;
		Suspend)
			myxlock &
			systemctl suspend
			;;
		Lock)
			myxlock
			;;
	esac
fi