Show invisible and occupied workspace for sway.
Is that possible ? If this have been asked before, feel free to close it. Thanks.
Does it because sway only show workspaces that contain windows? Then waybar has nothing to do with.
Well, other bar seems able to do it (e.g yambar), I tried tho. So, waybar doesn't have such configurations for it yet.
Have you tried the persistent_workspaces setting?
Have you tried the persistent_workspaces setting?
That's not what I want to achieve, I'll post a picture to describe it.
So, it's yambar, I want to achieve something like this, for example workspace one where some windows opened but unfocused and workspace 3 with window and focused and the rest is from persistent workspace. Waybar just have persistent workspace, visible, and focused for style, but waybar doesn't have something like unfocused.

So, it's yambar, I want to achieve something like this, for example workspace one where some windows opened but unfocused and workspace 3 with window and focused and the rest is from persistent workspace. Waybar just have persistent workspace, visible, and focused for style, but waybar doesn't have something like unfocused.
Sorry, It's my second GitHub account.
Try the following. In your waybar config, use:
"sway/workspaces": {
"disable-scroll": true,
"persistent_workspaces": {
"1": [],
"2": [],
"3": [],
"4": [],
},
},
and in your style.css, use:
#workspaces button {
transition: none;
color: white;
background: transparent;
padding: 5px;
font-size: 18px;
}
#workspaces button.persistent {
color: yellow;
font-size: 12px;
}
#workspaces button.focused {
color: lightgreen;
}

- Large green number indicates focused workspace with or without opened window(s). Note: being focused, it enables the user to see if the workspace has opened windows.
- Large white number indicates unfocused workspace(s) with opened window(s).
- Small yellow number indicates unfocused workspace(s) without opened window.
Maybe not exactly what you are looking for but should do the trick. Simply adjust the styles as you see fit and add persistent workspaces for your requirement.