blob: 5784a90d6150c98dfcca6f15777d694c95d80fe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
OPERATION=$(printf "Reboot\nShutdown\nSuspend" | dmenu -i -c -l 15 -p "Power Menu:")
case $OPERATION in
Reboot)
doas reboot
;;
Shutdown)
doas poweroff
;;
Suspend)
slock &
loginctl suspend
esac
|