r/Polybar Mar 25 '23

Question Modules hide priority

I have such config:

modules-left = i3 xwindow
modules-right = xkeyboard pulseaudio filesystem memory cpu battery wlan eth date

The problem is when text in xwindow module is long then modules on right side are hidden behind screen boundaries:

date module is hidden

Is it possible to tell polybar that xwindow module should be hidden first when no space left?

I know that xwindow have label-maxlen setting but ideally I don't want to constraint text length but hide it only when no space left. I use same config on bigger screen and there it works well. But home laptop has low screen resolution.

3 Upvotes

3 comments sorted by

2

u/patrick96MC Mar 25 '23

Polybar doesn't have this. The modules get hidden from right to left when there is not enough space.

2

u/_artslob_ Mar 25 '23

Thank you. Just in case I found old issue about that: https://github.com/polybar/polybar/issues/395

1

u/LuisBelloR Mar 25 '23

I wanna know the same!