dots/.scripts/bar/toggle

22 lines
320 B
Bash
Executable File

#!/usr/bin/env bash
visible=$CONFIG/polybar/.visible
barheight=27
padding=0
if [ -f $visible ]; then
polybar-msg cmd hide
rm $visible
else
#bspc config top_padding ((padding+$barheight))
polybar-msg cmd show
((padding=padding+barheight))
touch $visible
fi
bspc config top_padding $padding