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:
But what I get is:

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:
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).
I have something like this in my hyprland config:
So that I can do this in my Waybar
config.jsonc:But what I get is:
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: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.visibleor#workspaces button.urgent.Summary: