Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyprland/language module is not changing language code #3222

Closed
dxrknesss opened this issue May 6, 2024 · 0 comments
Closed

hyprland/language module is not changing language code #3222

dxrknesss opened this issue May 6, 2024 · 0 comments

Comments

@dxrknesss
Copy link

dxrknesss commented May 6, 2024

So I've been struggling with this issue for a while, and here's what I have:
For some reason, I just CAN'T get waybar working the way it should work. All I want it to do for is the language code to be changed when I switch my layout.

hyprland/language config:

  "hyprland/language": {
    "format": " {}",
    "format-en": "EN (US)",
    "format-uk": "UA-uk",
    "keyboard-name": "micro-star-int'l-co.,-ltd.-msi-gk50-elite-gaming-keyboard"
  }

hyprctl devices:
image

waybar and hyprland ver:
image
image

uname -rmo:
image

So there's basically two cases: when the "keyboard-name" attribute in config is set, and when it's not.

When "keyboard-name" is commented out:
image
What I get here is same as the other person issue I found while searching the solution for this:
#2137 (comment)
So it looks like it can't parse the name of my keyboard because it has commas in it. And when I switch the layout, it goes from this:
image
to this:
image
Producing the log message from the above.

When "keyboard-name" is set to the name of first (or any other) kb variant from hyprctl devices:
image
seems like everything should be ok, but actually language code won't change at all now.
image
it just stays like that all the time.

Idk what to do with this issue. I want to configure the hyprland setup, but this thing just won't let me go until I finish it.

@dxrknesss dxrknesss changed the title hyprland/language module is not working correctly hyprland/language module is not changing language code May 6, 2024
@Alexays Alexays closed this as completed May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants