Skip to content

hyprland/workspaces: duplicated workspaces #4307

Description

@arnaud-ma

I have something like this in my hyprland config:

workspace = name:code, persistent:true
workspace = name:web, persistent:true
...

So that I can do this in my Waybar config.jsonc:

"hyprland/workspaces": {
    "format": "{icon}",
    "sort-by": "name",
    "format-icons": {
        "code": "C",
        "web": "W",
        "1": "1",
        "2": "2",
        "3": "3",
        "4": "4",
        "5": "5",
        "6": "6",
        "7": "7",
        "8": "8",
        "9": "9",
        "10": "0"
    }
}

But what I get is:

Image

In other words: duplicated workspaces. However, only one of them actually works.

The button styles defined in style.css (like #workspaces button.visible, #workspaces button.urgent, etc.) only apply to the one on the left. I thought it might be an issue with the workspace names, and I found that adding this does remove the duplication:

"hyprland/workspaces": {
    "ignore-workspaces": [
        "^[a-zA-Z]+$"
    ],
    ...
}

But this ends up removing the correct one. That is, the remaining one does not have any of the expected styles such as #workspaces button.visible or #workspaces button.urgent.

Summary:

  • When creating named and persistent workspaces, Waybar shows duplicates.
  • One of them works properly and seems to not be the one associated with a numeric ID (or something like name:code instead of code)
  • The other one lacks styling and functionality (like visibility or urgency).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghyprland

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions