Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
5.82k stars 657 forks source link

[Feat] Add class support #3324

Open mobsenpai opened 3 weeks ago

mobsenpai commented 3 weeks ago

Having class support would be very helpful as I am currently using span tag to achieve my waybar setup which is working great only thing missing is the ability to configure some paddings within the elements of those span tags.

It is a great bar, I just need to define specific padding in those elements. Specifically I would like to increase the height or top+bottom padding of the right side modules, [why?] because if I increase the height of my bar the height of the right padding modules remain the same i.e they don't keep in ratio with it. Here is how it will look after increasing height: As you can see the left modules are prefect but the right modules need some top+bottom padding which I can't provide rn. image I would love to know if there is any other way of achieving it rn, which I don't believe there is, but, I request devs to look into this feature request.


My bar image

It's config config style.css

apiraino commented 3 weeks ago

As mentioned in the wiki , waybar uses GTK 3.0 CSS capabilities. So I assume that if GTK does not support classes, there's not a lot that Waybar can do.

mobsenpai commented 3 weeks ago

@apiraino, I'm surprised to hear that. I had been anticipating the implementation of that feature. I require it for my purposes. Are there any potential alternatives or workarounds that could be explored?