Files
dotfiles/.config/awesome/scripts/logout_script.sh
Niktia Bykov 982f56d950 initial
2024-01-01 15:42:39 +05:00

16 lines
305 B
Bash
Executable File

#!/bin/bash
#
# a simple dmenu session script
#
###
DMENU='dmenu -i'
choice=$(echo -e "logout\nshutdown\nreboot\nsuspend\nhibernate" | $DMENU)
case "$choice" in
shutdown) shutdown -h now & ;;
reboot) shutdown -r now & ;;
suspend) systemctl suspend & ;;
hibernate) systemctl hibernate & ;;
esac