summaryrefslogtreecommitdiff
path: root/scripts/powermenu
diff options
context:
space:
mode:
authorself <george@gabbott.dev>2022-09-19 11:37:02 +0100
committerself <george@gabbott.dev>2022-09-19 11:37:02 +0100
commit3a2cd83df27b27f365a8974ee7818db2248f5357 (patch)
treeaa0559b1cc82e09ed66a4b9e97ea7396e32663bd /scripts/powermenu
parenta22ebaff2ef77453b95c6b1076fefb7407eae7fb (diff)
powermenu
Diffstat (limited to 'scripts/powermenu')
-rwxr-xr-xscripts/powermenu7
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