diff options
Diffstat (limited to 'scripts')
-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 |