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/workspace and window are empty after updating waybar #3218

Closed
Asthestarsfalll opened this issue May 6, 2024 · 12 comments
Closed

hyprland/workspace and window are empty after updating waybar #3218

Asthestarsfalll opened this issue May 6, 2024 · 12 comments
Labels

Comments

@Asthestarsfalll
Copy link

waybar version Waybar v0.10.0-48-gcc084f5f (branch 'master')
config:

    "hyprland/workspaces": {
        "disable-scroll": true,
        "rotate": 0,
        "all-outputs": true,
        "active-only": false,
        "on-click": "activate",
        "on-scroll-up": "hyprctl dispatch workspace -1",
        "on-scroll-down": "hyprctl dispatch workspace +1",
        "persistent-workspaces": {
        }
    },

    "hyprland/window": {
        "format": "  {}",
        "rotate": 0,
        "separate-outputs": true,
        "rewrite": {
            "czh@czh-81tc:(.*)": "$1 ",
            "(.*) — Mozilla Firefox": "$1 󰈹",
            "(.*)Mozilla Firefox": "Firefox 󰈹",
            "(.*) - Visual Studio Code": "$1 󰨞",
            "(.*)Visual Studio Code": "Code 󰨞",
            "(.*) — Dolphin": "$1 󰉋",
            "(.*)Spotify": "Spotify 󰓇",
            "(.*)Steam": "Steam 󰓓"
        },
        "max-length": 1000
    },

240506_22h56m24s_screenshot

@zjeffer
Copy link
Contributor

zjeffer commented May 6, 2024

  • Which Hyprland version are you using?
  • If you run Waybar with -l trace in a terminal, what output do you get?

@zjeffer
Copy link
Contributor

zjeffer commented May 6, 2024

Nevermind, the Waybar version you are using is really old: https://github.com/Alexays/Waybar/commits/cc084f5f (2 months ago).

You should update your Waybar.

@Asthestarsfalll
Copy link
Author

I am using Hyprland 0.40.1.

You should update your Waybar.

I update waybar to 0.10.3, but it occurs an error: waybar: symbol lookup error: waybar: undefined symbol: g_once_init_leave_pointer

@YaroKasear
Copy link

I should probably give a heads up: The version of Waybar installed via the flake seems to no longer have the fix(?). It used to look in the new place, but seems to have reverted back to looking in /tmp/hypr again.

@zjeffer
Copy link
Contributor

zjeffer commented May 7, 2024

I update waybar to 0.10.3, but it occurs an error: waybar: symbol lookup error: waybar: undefined symbol: g_once_init_leave_pointer

I found this issue from another project: SeaDve/Kooha#283

your glib packages are maybe not updated?

@MangoIV
Copy link

MangoIV commented May 8, 2024

I have the same issue:

[2024-05-08 10:05:45.626] [info] Hyprland IPC starting
[2024-05-08 10:05:45.626] [error] Hyprland IPC: Unable to connect?
[2024-05-08 10:05:45.627] [error] Hyprland IPC: Couldn't connect to /tmp/hypr/cba1ade848feac44b2eda677503900639581c3f4_1715153733_548349008/.socket.sock. (3)
[2024-05-08 10:05:45.627] [warning] module hyprland/workspaces: Disabling module "hyprland/workspaces", Error parsing JSON: * Line 1, Column 1
  Syntax error: value, object or array expected.

[2024-05-08 10:05:45.629] [error] Hyprland IPC: Couldn't connect to /tmp/hypr/cba1ade848feac44b2eda677503900639581c3f4_1715153733_548349008/.socket.sock. (3)
[2024-05-08 10:05:45.630] [warning] module hyprland/window: Disabling module "hyprland/window", Error parsing JSON: * Line 1, Column 1
  Syntax error: value, object or array expected.

[2024-05-08 10:05:45.644] [error] Hyprland IPC: Couldn't connect to /tmp/hypr/cba1ade848feac44b2eda677503900639581c3f4_1715153733_548349008/.socket.sock. (3)
[2024-05-08 10:05:45.645] [error] hyprland language initLanguage failed with basic_string::substr: __pos (which is 7) > this->size() (which is 0)
[2024-05-08 10:05:45.691] [debug] Output detection done: DP-6 (Dell Inc. DELL S3221QSA 88809R3)
[2024-05-08 10:05:45.692] [debug] window-rewrite is not defined or is not an object, using default rules.
[2024-05-08 10:05:45.693] [error] Hyprland IPC: Couldn't connect to /tmp/hypr/cba1ade848feac44b2eda677503900639581c3f4_1715153733_548349008/.socket.sock. (3)
[2024-05-08 10:05:45.693] [warning] module hyprland/workspaces: Disabling module "hyprland/workspaces", Error parsing JSON: * Line 1, Column 1
  Syntax error: value, object or array expected.

[2024-05-08 10:05:45.695] [error] Hyprland IPC: Couldn't connect to /tmp/hypr/cba1ade848feac44b2eda677503900639581c3f4_1715153733_548349008/.socket.sock. (3)
[2024-05-08 10:05:45.695] [warning] module hyprland/window: Disabling module "hyprland/window", Error parsing JSON: * Line 1, Column 1

hyprland is latest release (0.40.0?), waybar is 0.10.2

@MangoIV
Copy link

MangoIV commented May 8, 2024

it also doesn't work by adding hyprland with makeWrapper

@zjeffer
Copy link
Contributor

zjeffer commented May 8, 2024

@MangoIV Update to 0.10.3

@Heyian
Copy link

Heyian commented May 8, 2024

I confirm that 0.10.3 fixed it for me.

@MangoIV
Copy link

MangoIV commented May 9, 2024

Yup that fixed it. Thank you!

@Asthestarsfalll
Copy link
Author

@Heyian @MangoIV Hi, I want to know what's the version of glib2 you are using. My warbar cannot run.

@Heyian
Copy link

Heyian commented May 10, 2024

@Asthestarsfalll

I'm at glib2 2.80.2-1

Hope this helps you out.

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

5 participants