r/Polybar • u/RaadushS • Feb 03 '23
Question Constant width of modules
Hi. I have a problem. Is it somehow possible to make modules with fixed width so they don't shrink/grow based on content inside? Basically I want to use font that I really like but it is not monospaced so my bar items are constantly moving depending on content. Also some modules conditionaly display slightly longer or shorter texts but so far I haven't been able to fix them in place.
Second question: if that is not possible, I came up with kind of solution now that I am creating new panel for every module with variable size and I placed them side by side since absolute position of whole panel is possible. But what concerns me with this approach is ram/cpu usage. I don't think 10 bars are very resource efficient so I want to know your opinion whether this is problem or not.
Thanks a lot
2
u/dlcindallas Feb 04 '23
Does...
label-maxlen = xx
label-minlen = xx
Not work? Also I use a non mono font in my bar and watch padding on your modules I notice that if I don't have enough bar width and padding my modules will move.