aboutsummaryrefslogtreecommitdiff
path: root/dmenu-power
diff options
context:
space:
mode:
Diffstat (limited to 'dmenu-power')
-rwxr-xr-xdmenu-power11
1 files changed, 11 insertions, 0 deletions
diff --git a/dmenu-power b/dmenu-power
new file mode 100755
index 0000000..5e993e9
--- /dev/null
+++ b/dmenu-power
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+choice=$(echo -e " Shutdown\n Reboot\n Logout\n Lock\n Exit" | dmenu -c -l -3 -p "Power: ")
+case "$choice" in
+ " Shutdown") shutdown -h now ;;
+ " Reboot") reboot ;;
+ " Logout") pkill -u $USER ;;
+ " Lock") slock;;
+ " Exit") exit 0 ;;
+ *) exit 1;;
+esac