Skip to content

Hyprland plugin broken due to new socket location #3209

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

Closed
CelestialCrafter opened this issue May 4, 2024 · 4 comments
Closed

Hyprland plugin broken due to new socket location #3209

CelestialCrafter opened this issue May 4, 2024 · 4 comments
Labels
bug Something isn't working custom hyprland

Comments

@CelestialCrafter
Copy link

Hyprland recently changed their socket location from /tmp/hypr to $XDG_RUNTIME_DIR/hypr, so waybar now breaks when trying to connect to the Hyprland socket.

example:

[2024-05-04 17:43:47.784] [info] Using configuration file /home/celestial/.config/waybar/config.jsonc
[2024-05-04 17:43:47.785] [info] Using CSS file /home/celestial/.config/waybar/style.css
[2024-05-04 17:43:47.791] [info] Hyprland IPC starting
[2024-05-04 17:43:47.791] [error] Hyprland IPC: Unable to connect?
[2024-05-04 17:43:47.791] [error] Hyprland IPC: Couldn't connect to /tmp/hypr/a3309b51a254f142c535022615be6f76eb23fa9b_1714862139_15392527/.socket.sock. (3)
[2024-05-04 17:43:47.791] [warning] module hyprland/workspaces: Disabling module "hyprland/workspaces", Error parsing JSON: * Line 1, Column 1
  Syntax error: value, object or array expected.
[2024-05-04 17:43:47.922] [info] Bar configured (width: 1920, height: 41) for output: DP-4

image
image

Hyprland commit a3309b51a254f142c535022615be6f76eb23fa9b

Waybar version 0.9.24

@github-actions github-actions bot added bug Something isn't working custom hyprland labels May 4, 2024
@CelestialCrafter
Copy link
Author

found out this is already fixed, sorry!

@YaroKasear
Copy link

Is this still fixed? The version installed by the Flake is looking in /tmp/hypr again. Can this be checked?

@CelestialCrafter
Copy link
Author

CelestialCrafter commented May 8, 2024

works for me, did you nix flake update?

edit: if it still doesn't work could you show me your flake.lock, flake.nix, and the file where you import waybar (configuration.nix/home.nix`, ect)

@shot-codes
Copy link

shot-codes commented May 14, 2024

@CelestialCrafter I still have the same issue. You can see my setup here https://github.com/shot-codes/nix, https://github.com/shot-codes/nix/blob/main/home/waybar.nix

❯ hyprctl version 
Hyprland, built from branch  at commit 1584679004435d93d5fe2dd794d2aefaa0c9574a  ().
❯ waybar -v
Waybar v0.9.24

Ah, I can see that I am on a old version of waybar, I guess because I am not installing via flake. Not entirely sure how to go about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working custom hyprland
Projects
None yet
Development

No branches or pull requests

3 participants