Alexays / Waybar

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

[Feature request] style individual languages in niri/language module #3657

Open stepanzak opened 3 weeks ago

stepanzak commented 3 weeks ago

Hi, I use two different languages on my keyboard, and I would really appreciate the ability to distinguish between the two just by color, rather than reading the text in the module. I think the best way to do this from the user perspective is via css attribute selectors, so you could do something like #language[language="en"] {...}, but I'm no expert. (cc @YaLTeR )

YaLTeR commented 3 weeks ago

Sounds relatively straightforward to implement, similar to how the window and the workspaces module set a style class. Fwiw I just copied the logic from the existing Hyprland module.