Files
utility_scripts/hide_bar.sh
Andrew f1c0a15c56 fix windows overlapping polybar
windows were overlapping polybar when the bar was revealed on another desktop after being hidden
2023-09-28 16:36:22 +01:00

13 lines
270 B
Bash
Executable File

#!/bin/sh
# Simple script to hide Polybar on bspwm
if [ -f /tmp/polybarhidden ]; then
bspc config top_padding 38
polybar-msg cmd show
rm /tmp/polybarhidden
else
polybar-msg cmd hide
bspc config top_padding 0
touch /tmp/polybarhidden
fi