dots/.scripts/bar/toggle

17 lines
248 B
Plaintext
Raw Normal View History

2021-08-20 21:22:37 +02:00
#!/usr/bin/env bash
visible=$CONFIG/polybar/visible
barheight=27
if [ -f $visible ]; then
bspc config top_padding 0
polybar-msg cmd hide
rm $visible
else
bspc config top_padding 27
polybar-msg cmd show
touch $visible
fi