about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-13 19:10:47 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-13 19:10:47 +0200
commitffae586fd996eeb0aa2e8c2849072091c802f066 (patch)
treec9301d652e1ea92acfd498c1103369187f09b136
parentAdded exec perms to exit (diff)
downloaddmenu-ffae586fd996eeb0aa2e8c2849072091c802f066.tar.gz
dmenu-ffae586fd996eeb0aa2e8c2849072091c802f066.tar.bz2
dmenu-ffae586fd996eeb0aa2e8c2849072091c802f066.zip
Added logout option to the exit script
-rwxr-xr-xscripts/exit3
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 & ;;