Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

How to stretch a module to fill the remaining space?

Open UtkarshVerma opened this issue 3 years ago • 2 comments
trafficstars

Currently, modules are shrunk to their content size in waybar. The behaviour I wish is to have the window module fill the remaining space, so that I can style an appropriate background color.

Is it currently possible?

UtkarshVerma avatar May 18 '22 13:05 UtkarshVerma

waybar config { "width" : 0, }

Currently, modules are shrunk to their content size in waybar. The behaviour I wish is to have the window module fill the remaining space, so that I can style an appropriate background color.

Is it currently possible?

vanarok avatar May 27 '22 09:05 vanarok

image

I hope this image clarifies what I wish to achieve. If you look at the image, I have styled the window module with red background. As you can see, it doesn't fill the entire space, there is some unused space on the left of the status bar.

If you're wondering why I want this, I wish to have a different background colour for the middle region when a window is focused. Something like this:

UtkarshVerma avatar May 29 '22 09:05 UtkarshVerma