From b81f95f607515dae1429d0c90949c17abb1b2347 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Wed, 12 Jun 2019 18:38:49 +0200 Subject: Added exit script --- scripts/exit | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/exit 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 -- cgit 1.4.1