summaryrefslogtreecommitdiff
path: root/bin/quitmenu
diff options
context:
space:
mode:
Diffstat (limited to 'bin/quitmenu')
-rwxr-xr-xbin/quitmenu32
1 files changed, 32 insertions, 0 deletions
diff --git a/bin/quitmenu b/bin/quitmenu
new file mode 100755
index 0000000..e9823b8
--- /dev/null
+++ b/bin/quitmenu
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+mkopts() {
+ echo 'Quit
+Poweroff
+Reboot
+Suspend
+Lock
+'
+}
+
+if choice="`mkopts | dmenu -i`"; then
+ case "$choice" in
+ Quit)
+ pkill mybar
+ bspc quit
+ ;;
+ Poweroff)
+ poweroff
+ ;;
+ Reboot)
+ reboot
+ ;;
+ Suspend)
+ myxlock &
+ systemctl suspend
+ ;;
+ Lock)
+ myxlock
+ ;;
+ esac
+fi