1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash export SWAYSESSION_GUI=1 if [ -n "$1" ]; then swaysession $1 > /dev/null exit 0 fi echo -ne "\0no-custom\x1ftrue\n" echo -ne "\0prompt\x1fWhat to do?\n" echo -ne "logout\0icon\x1fsystem-log-out\n" echo -ne "suspend\0icon\x1fsystem-suspend\n" echo -ne "reboot\0icon\x1fsystem-restart\n" echo -ne "poweroff\0icon\x1fsystem-shutdown\n"