about summary refs log blame commit diff
path: root/scripts/exit
blob: 4b33e61d89ada55de35561e20a7251383e53c87f (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                               
                                                                         

                 
                         

                                     
                                   

                               
#!/bin/bash
#
# a simple dmenu session script
#
###

DMENU='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 & ;;
  reboot) systemctl reboot & ;;
esac