about summary refs log blame commit diff
path: root/scripts/exit
blob: 48fcf5ad17565762bbf3e3543fceb17a3ffe1d9a (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 -h now & ;;
  reboot) systemctl reboot & ;;
esac