Waybar: hyprland/workspaces is not working on waybar 0.9.20

Describe the bug:

I wasn’t able to have hyprland/workspaces enabled on my waybar configuration

Configuration

{
  "spacing": 0,
  "layer": "top",
  "modules-left": ["hyprland/workspaces"],
  "modules-center": ["clock"],
  "hyprland/workspaces": {
    "format": "{name}: {icon}",
    "format-icons": {
      "1": "",
      "2": "",
      "3": "",
      "4": "",
      "5": "",
      "active": "",
      "default": ""
    },
    "persistent_workspaces": {
      "*": 5, // 5 workspaces by default on every monitor
      "HDMI-A-1": 3 // but only three on HDMI-A-1
    }
  }
}

Log:

[warning] module hyprland/workspaces: Disabling module "hyprland/workspaces", * Line 1, Column 1
  Syntax error: value, object or array expected.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Also make sure that you are REALLY on the latest version. I for example just learned that I had hyprland-nvidia installed, which was removed from the arch repos (or the AUR? don’t remember) some time ago it seems and I was therefore still on 0.31.0-2 instead of the current 0.37.1-2. Hope it helps!

thats it

i was on nvidia and was using that package, switched to hyprland-git and it fixed it. Thank you

Also make sure that you are REALLY on the latest version. I for example just learned that I had hyprland-nvidia installed, which was removed from the arch repos (or the AUR? don’t remember) some time ago it seems and I was therefore still on 0.31.0-2 instead of the current 0.37.1-2. Hope it helps!

@amplexus i have the same problem as you have but on the latest hyprland, is there any way you can help me?

Can confirm that running current Hyprland (0.34.0) works fine - no errors or failing RPC calls… All that commotion for nothing 😄

Thanks anyway @zjeffer !

Ok hang about. My hyprctl command doesn’t support the activeworkspace option.

Digging deeper, I followed https://wiki.hyprland.org/Getting-Started/Installation/ which lead me to a gist for Ubuntu 23.X, which gave me a script to run, which, err, downloaded hyprland 0.24.1 (versus current release 0.34). I figure that’s the problem.

This problem is already fixed in the latest master. You can compile it yourself or wait for the next release.

In the meantime, you should be able to use wlr/workspaces.