summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2022-06-05 14:32:13 -0500
committerGitHub <noreply@github.com>2022-06-05 14:32:13 -0500
commite68ba677432cf0ac70e91347f3dfa20f700c8fd7 (patch)
tree4c1fb81cef4d1c2f8b74910a6f90ea87b24c386d /scripts
parentab8c4738fe4bc6c2eb2f60e5df07ffcbeeb14e62 (diff)
add powermenu back
Diffstat (limited to 'scripts')
-rw-r--r--scripts/powermenu8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/powermenu b/scripts/powermenu
new file mode 100644
index 0000000..027d513
--- /dev/null
+++ b/scripts/powermenu
@@ -0,0 +1,8 @@
+#!/bin/sh
+case "$(echo "Poweroff \nReboot ﰇ\nSuspend ⏾\nCancel ﰸ" | dmenu)" in
+ "Poweroff ") sudo poweroff ;;
+ "Reboot ﰇ") sudo reboot ;;
+ "Suspend ⏾") sudo ZZZ -z ;;
+ "Cancel ﰸ") exit ;;
+ *) exit ;;
+esac