diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-12-01 23:59:31 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-12-01 23:59:31 +0100 |
commit | b3eaf4d3e1e3031054fadbc47eb749f47f901e83 (patch) | |
tree | bb595da73ea856a77e15420b43d3b43c003963dd /bin/quitmenu | |
download | dotfiles-b3eaf4d3e1e3031054fadbc47eb749f47f901e83.tar.gz dotfiles-b3eaf4d3e1e3031054fadbc47eb749f47f901e83.tar.bz2 dotfiles-b3eaf4d3e1e3031054fadbc47eb749f47f901e83.zip |
Initial commit
Diffstat (limited to 'bin/quitmenu')
-rwxr-xr-x | bin/quitmenu | 32 |
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 |