dotfiles/.config/awesome/exit.sh

12 lines
269 B
Bash
Raw Normal View History

2019-08-26 12:01:05 +02:00
#!/bin/sh
ANSWER=$(echo -e "suspend\nlock\nlogout\nshutdown\nreboot" | rofi -dmenu)
case $ANSWER in
"suspend") systemctl suspend;;
"lock") xset s activate;;
"logout") echo 'awesome.quit()' | awesome-client;;
"shutdown") shutdown now;;
"reboot") reboot;;
esac