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 sometimes shows nothing #3190

Closed
coffebar opened this issue May 1, 2024 · 4 comments
Closed

hyprland/language sometimes shows nothing #3190

coffebar opened this issue May 1, 2024 · 4 comments
Labels

Comments

@coffebar
Copy link

coffebar commented May 1, 2024

Sometimes I need to change layout to see it in the waybar

image

like this:

image

"hyprland/language": {
    "format": "{}",
    "max-length": 18
},

I have 2 monitors and 2 keyboards. Also using hyprland-per-window-layout , not sure if it can be related.

hyprland config:

input {
  kb_layout = us,ua
  kb_variant =
  kb_model =
  kb_options = grp:alt_shift_toggle,caps:backspace
  kb_rules =
...

pls help me to debug this

@github-actions github-actions bot added bug Something isn't working clock hyprland keyboard labels May 1, 2024
@KalaayPT
Copy link

KalaayPT commented May 3, 2024

whats your log if you run waybar from terminal?
also, i had the issue where it wouldnt appear at all, and apparently it was because it couldnt connect to the ipc, giving me this:
Hyprland IPC: Couldn't connect to /tmp/hypr/70ebc3add3b941a52f460f02129ef0842f580ec7_1714744275_1686582762.socket.sock.
what i gather from this is that it was apparently looking in the wrong place from some reason, because this
ln -s $XDG_RUNTIME_DIR/hypr /tmp/hypr
completely fixed the issue. thought id put this here so this can get fixed/help others

EDIT: my IPC was active of course, because
echo $HYPRLAND_INSTANCE_SIGNATURE
did return
70ebc3add3b941a52f460f02129ef0842f580ec7_1714744275_1686582762
which is exactly the thing it was looking for in /tmp/hypr

@coffebar
Copy link
Author

coffebar commented May 6, 2024

Did find interesting:

[2024-05-06 18:51:55.642] [debug] hyprland language onevent with English (US)
[2024-05-06 18:51:55.648] [debug] hyprland language onevent with English (US)
[2024-05-06 18:51:55.649] [debug] hyprland IPC received activelayout>>wlr_virtual_keyboard_v1,English (US)
[2024-05-06 18:51:55.655] [debug] hyprland language onevent with English (US)
[2024-05-06 18:51:55.661] [debug] hyprland language onevent with English (US)
[2024-05-06 18:51:55.662] [debug] hyprland IPC received activelayout>>wlr_virtual_keyboard_v1,error
[2024-05-06 18:51:55.667] [debug] hyprland language didn't find matching layout
[2024-05-06 18:51:55.667] [debug] hyprland language onevent with error
[2024-05-06 18:51:55.675] [debug] hyprland language didn't find matching layout
[2024-05-06 18:51:55.675] [debug] hyprland language onevent with error

@zjeffer
Copy link
Contributor

zjeffer commented May 6, 2024

whats your log if you run waybar from terminal? also, i had the issue where it wouldnt appear at all, and apparently it was because it couldnt connect to the ipc, giving me this: Hyprland IPC: Couldn't connect to /tmp/hypr/70ebc3add3b941a52f460f02129ef0842f580ec7_1714744275_1686582762.socket.sock. what i gather from this is that it was apparently looking in the wrong place from some reason, because this ln -s $XDG_RUNTIME_DIR/hypr /tmp/hypr completely fixed the issue. thought id put this here so this can get fixed/help others

EDIT: my IPC was active of course, because echo $HYPRLAND_INSTANCE_SIGNATURE did return 70ebc3add3b941a52f460f02129ef0842f580ec7_1714744275_1686582762 which is exactly the thing it was looking for in /tmp/hypr

That has been fixed in #3183, and now also in the new 0.10.3 release of Waybar. The problem was a breaking change by Hyprland.

@zjeffer
Copy link
Contributor

zjeffer commented May 6, 2024

[2024-05-06 18:51:55.662] [debug] hyprland IPC received activelayout>>wlr_virtual_keyboard_v1,error

This seems like Hyprland is sending errors to the IPC, not a problem in Waybar. I suggest you search the Hyprland issues or create a new issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants