dotfiles/.config/sway/exit.sh

12 lines
243 B
Bash
Executable File

#!/bin/sh
ANSWER=$(echo -e "suspend\nlock\nlogout\nshutdown\nreboot" | rofi -dmenu)
case $ANSWER in
"suspend") systemctl suspend;;
"lock") xset s activate;;
"logout") swaymsg exit;;
"shutdown") shutdown now;;
"reboot") reboot;;
esac