Files
sysadmin/sway/fullscreen.sh

15 lines
228 B
Bash
Executable File

#!/bin/sh
flag=$XDG_RUNTIME_DIR/.sway_fullscreen_flag-$XDG_SEAT
# fullscreen -> normal
if [ -f $flag ]; then
polybar-msg cmd show
rm $flag
# normal -> fullscreen
else
polybar-msg cmd hide
touch $flag
fi
swaymsg fullscreen