aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/rofisession
blob: 8ee7b2e316a8691a4b2cc0cd12ccaff47eacc833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

export SWAYSESSION_GUI=1

if [ -n "$1" ]; then
	swaysession $1 > /dev/null
	exit 0
fi

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-reboot\n"
echo -ne "poweroff\0icon\x1fsystem-shutdown\n"