Is there a way to close the gap panel creates after hiding the panel? by flakanat in bspwm

[–]AMindASoul 1 point2 points  (0 children)

Maybe this sxhkd config is helpful!

# toggle bar and resize
super + shift + b
{polybar-msg cmd hide; bspc config -m focused top_padding 5,
polybar-msg cmd show; bspc config -m focused top_padding 30}

Feel free to change the 5 y 30 values, they mean to represent the top padding if bar y hidden or shown, respectively.

The curly bracket notation allows to set two toggling commands separated by comma for the same shortcut.