about summary refs log blame commit diff
path: root/dotfiles/scripts/exit
blob: 9fca18a67df94da2ccef45998d71aedf0b9af964 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














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

DMENU='dmenu'
choice=$(echo -e "logout\nsuspend\nshutdown\nreboot" | $DMENU)

case "$choice" in
  logout) kill -9 -1 & ;;
  suspend) systemctl suspend & ;;
  shutdown) systemctl poweroff & ;;
  reboot) systemctl reboot & ;;
esac