diff options
Diffstat (limited to 'sys/powermenu')
-rwxr-xr-x | sys/powermenu | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/powermenu b/sys/powermenu new file mode 100755 index 0000000..e9d6a2a --- /dev/null +++ b/sys/powermenu @@ -0,0 +1,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 |