From b3eaf4d3e1e3031054fadbc47eb749f47f901e83 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 1 Dec 2013 23:59:31 +0100 Subject: Initial commit --- bin/quitmenu | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 bin/quitmenu (limited to 'bin/quitmenu') 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 -- cgit v1.2.3-70-g09d2