diff options
author | self <george@gabbott.dev> | 2023-01-03 23:26:12 +0000 |
---|---|---|
committer | self <george@gabbott.dev> | 2023-01-03 23:26:12 +0000 |
commit | 0e29becfa37203f02fa8392bb3de61265b44ed1a (patch) | |
tree | e304f3455038e2f46cf7deac27ac84805683c7b4 | |
parent | a5a2c775fbcc696e70bbdf9fb3f98c8b0ac1ea4b (diff) |
powermenu
-rwxr-xr-x | scripts/powermenu | 4 |
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 |