Skip to content

Conversation

@dimti
Copy link

@dimti dimti commented Oct 7, 2025

Accordinally to sway language module #1628.
This added similaral functionality for hyprland language module.

And in style.css poissble now, as demo example - separate styles for any keyboard layout:

#language
{
  color:#d08770;
}

#language.en
{
  color:#6114dc;
}

@winkelnp
Copy link
Contributor

winkelnp commented Oct 9, 2025

Testing this on my system, this doesn't update the style context when the layout is changed while waybar is running, you'd need to add a similar thing in onEvent around the layout_ = line

@dimti
Copy link
Author

dimti commented Oct 10, 2025

@winkelnp Okay. Im add both in init method and to onEvent. Sorry for the untested un first commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants