summaryrefslogtreecommitdiff
path: root/scripts/powermenu
blob: d8f78915733d386a60a39728aa0869819a526b6d (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh

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

[ "$resp" = "♻️ shutdown" ] && sudo poweroff
[ "$resp" = "⏼ reboot" ] && sudo reboot
[ "$resp" = " lock" ] && slock