summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/powermenu4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/powermenu b/scripts/powermenu
index d8f7891..e9d6a2a 100755
--- a/scripts/powermenu
+++ b/scripts/powermenu
@@ -1,7 +1,9 @@
#!/bin/sh
-resp=$(printf "♻️ shutdown\n⏼ reboot\n lock\nrestart dwm\nclose dwm" | dmenu)
+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