bspwm icon indicating copy to clipboard operation
bspwm copied to clipboard

Spacing is not proportional depending on the Polybar

Open d4rios opened this issue 4 years ago • 2 comments

Currently I change the appearance of my bspwm desktop by launching a script that shows me rofi with different themes from which I can choose.

When switching from one theme to another, bspwm remembers the space occupied by the Polybar leaving more margin on one side than on the other. You can see in the attached video how sometimes there is more space at the top, sometimes at the bottom. The spaces are not proportional.

Is there any way to automate this so that the margins are proportional and equal in size?

Greetings

bspwm -v 0.9.10

polybar -v polybar 3.5.7

In Polybar --> margin-bottom = 0 --> margin-top = 0

bspc config window_gap 10

https://drive.google.com/file/d/1SR2ymwgZZuT2lMNOdzsJFqHIVF1Jooey/view?usp=sharing

d4rios avatar Jan 11 '22 19:01 d4rios

Yeah, i have the same issue, really annoying sometimes, for me only a problem this, if my monitor going to blank, and after wake up i have extra spacing, only logout fixes this fully.

Baftastic avatar Jan 15 '22 12:01 Baftastic

i think you can work around this by putting override-redirect = true in your polybar config file, and then changing bspwm's margins using bspc config top_padding/bottom_padding <your bar's height in px> each time you change your theme/update your bar

h0hi avatar Jan 18 '22 05:01 h0hi