From 0e29becfa37203f02fa8392bb3de61265b44ed1a Mon Sep 17 00:00:00 2001 From: self Date: Tue, 3 Jan 2023 23:26:12 +0000 Subject: powermenu --- scripts/powermenu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1