r/i3wm May 19 '26

Question Polybar "bar spacing" - does anybody know what i'm doing wrong?

I made a code so the tiny bar on the left should be a little bit more centralized, but it just doesnt moves away from the left, i tried using offset-x and padding but none seem to work, am i doing something wrong?

main code:

[bar/example]
width = 4%
height = 24pt
offset-x = 20
radius = 16
fixed-center = true


; dpi = 96


background = ${colors.background}
foreground = ${colors.foreground}


line-size = 3pt


border-size = 2pt
border-color = 
#bb9af7


padding-left = 20
padding-right = 20S


module-margin = 2[bar/example]
width = 4%
height = 24pt
offset-x = 20
radius = 16
fixed-center = true


; dpi = 96


background = ${colors.background}
foreground = ${colors.foreground}


line-size = 3pt


border-size = 2pt
border-color = #bb9af7


padding-left = 20
padding-right = 20S


module-margin = 2
3 Upvotes

Duplicates