diff options
-rwxr-xr-x | scripts/powermenu | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/powermenu b/scripts/powermenu new file mode 100755 index 0000000..d8f7891 --- /dev/null +++ b/scripts/powermenu @@ -0,0 +1,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 |