about summary refs log tree commit diff
path: root/scripts/exit
blob: 6f89a6ac40806be3aaec3e705a517e2bfc6c0a91 (plain) (blame)
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 "suspend\nhibernate\nshutdown\nreboot" | $DMENU)

case "$choice" in
  suspend) systemctl suspend & ;;
  hibernate) systemctl hibernate & ;;
  shutdown) systemctl shutdown -h now & ;;
  reboot) systemctl reboot & ;;
esac