summaryrefslogtreecommitdiff
path: root/sys/powermenu
blob: e9d6a2afc9416632d663f408d879ff1a963ad20e (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh

resp=$(printf "♻️ shutdown\n⏼ reboot\n lock\nrestart dwm\nclose X" | dmenu)

[ "$resp" = "♻️ shutdown" ] && sudo poweroff
[ "$resp" = "⏼ reboot" ] && sudo reboot
[ "$resp" = " lock" ] && slock
[ "$resp" = "restart dwm" ] && pkill dwm
[ "$resp" = "close X" ] && pkill xinit