diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-13 19:10:47 +0200 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-06-13 19:10:47 +0200 |
commit | ffae586fd996eeb0aa2e8c2849072091c802f066 (patch) | |
tree | c9301d652e1ea92acfd498c1103369187f09b136 | |
parent | Added exec perms to exit (diff) | |
download | dmenu-ffae586fd996eeb0aa2e8c2849072091c802f066.tar.gz dmenu-ffae586fd996eeb0aa2e8c2849072091c802f066.tar.bz2 dmenu-ffae586fd996eeb0aa2e8c2849072091c802f066.zip |
Added logout option to the exit script
-rwxr-xr-x | scripts/exit | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/exit b/scripts/exit index 6f89a6a..48fcf5a 100755 --- a/scripts/exit +++ b/scripts/exit @@ -5,9 +5,10 @@ ### DMENU='dmenu' -choice=$(echo -e "suspend\nhibernate\nshutdown\nreboot" | $DMENU) +choice=$(echo -e "logout\nsuspend\nhibernate\nshutdown\nreboot" | $DMENU) case "$choice" in + logout) kill -9 -1 & ;; suspend) systemctl suspend & ;; hibernate) systemctl hibernate & ;; shutdown) systemctl shutdown -h now & ;; |