diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-12 18:38:49 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-12 18:38:49 +0200 |
commit | b81f95f607515dae1429d0c90949c17abb1b2347 (patch) | |
tree | c2dd67bfdfd75a8139f7977504841c8a139e7ae2 | |
parent | Renamed a patch (diff) | |
download | dmenu-b81f95f607515dae1429d0c90949c17abb1b2347.tar.gz dmenu-b81f95f607515dae1429d0c90949c17abb1b2347.tar.bz2 dmenu-b81f95f607515dae1429d0c90949c17abb1b2347.zip |
Added exit script
-rw-r--r-- | scripts/exit | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/exit b/scripts/exit new file mode 100644 index 0000000..6f89a6a --- /dev/null +++ b/scripts/exit @@ -0,0 +1,15 @@ +#!/bin/bash +# +# a simple dmenu session script +# +### + +DMENU='dmenu' +choice=$(echo -e "suspend\nhibernate\nshutdown\nreboot" | $DMENU) + +case "$choice" in + suspend) systemctl suspend & ;; + hibernate) systemctl hibernate & ;; + shutdown) systemctl shutdown -h now & ;; + reboot) systemctl reboot & ;; +esac |