Polybar: Cosmetic: tray pushes bar to the left, unaligning centered module

Created on 4 Dec 2016  路  3Comments  路  Source: polybar/polybar

It's a small cosmetic issue, but whenever you have a tray, the bar center is actually calculated disregarding the tray size, therefore the center module is unaligned with the rest of the desktop.

Check this out, the terminal window is centered, but you can see the title on the middle is pushed to the left because of the tray.

https://u.teknik.io/H1Eaq.png

Most helpful comment

Closing this for as it won't be fixed for the current implementation. I've started on writing a systray module that will move the tray handling to a dedicated module.

All 3 comments

This is the intended behavior. If you don't want the tray to affect the bar window, use tray-detached = true

Just tested, still pushed the bar with it.

What I am trying to do is that the right modules to be pushed to the left to accommodate changes but the center one stays centered to the total bar+tray length.

Closing this for as it won't be fixed for the current implementation. I've started on writing a systray module that will move the tray handling to a dedicated module.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hiemanshu picture hiemanshu  路  3Comments

eoli3n picture eoli3n  路  3Comments

guncha picture guncha  路  3Comments

mikeroll picture mikeroll  路  4Comments

amirashabani picture amirashabani  路  3Comments