blob: 48fcf5ad17565762bbf3e3543fceb17a3ffe1d9a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
|