775 B
775 B
Sway Power Prompt Script
Activate swaynag
prompt with power-off options if the lock file is not present which executes an action.
if test -f ~/.swaynaglock; then
killall swaynag
rm ~/.swaynaglock
else
touch ~/.swaynaglock
swaynag --background 00000030 --border 00000030 --border-bottom 00000030 --button-background 00000030 --font=SauceCodePro Nerd Font 256\
-m '' \
-b '' \
'bash ~/.config/sway/poweraction logout' \
-b '⏻' \
'bash ~/.config/sway/poweraction poweroff' \
-b '' \
'bash ~/.config/sway/poweraction reboot'
rm ~/.swaynaglock
fi