waybar-wlr-workspaces(5)
β¨ NAME β¨
So this is waybar-wlr-workspaces(5) bestie β it's the little manual page for the wlr workspaces module of waybar. If you're deep in the waybar config files (that's the "File Formats Manual" energy π«Ά), you're in the right place.
πΈ DESCRIPTION πΈ
The workspaces module shows you the workspaces you're currently using in your Wayland compositor. That's it, that's the vibe β your workspaces, on display, living their main character life. π
π CONFIGURATION π
You address this module as ext/workspaces. Here's everything you can set, and yes we're going through all of it, no skipping π₯
format- typeof:
string - default:
{name} - The format β aka how the info should be displayed. It's giving "how do I want this to look".
- typeof:
format-icons- typeof:
array - Based on the workspace's name and state, the matching icon gets picked. Peep the ICONS section below for the details.
- typeof:
sort-by-name- typeof:
bool - default:
true - Should workspaces be sorted by name? When every name is numbers, the names get sorted numerically instead.
- typeof:
sort-by-coordinates- typeof:
bool - default:
false - Should workspaces be sorted by coordinates? Heads up: if both
sort-by-nameandsort-by-coordinatesaretrue, then sorting by name comes first. And if both arefalse, it'll sort by id instead.
- typeof:
sort-by-id- typeof:
bool - default:
false - Should workspaces be sorted by ID? When all the IDs are numbers, the IDs get sorted numerically. This one takes precedence over any other
sort-byoption β it's the main character of sorting, periodt. π
- typeof:
all-outputs- typeof:
bool - default:
false - If it's set to
false, a workspace group only shows up in the output it's assigned to. Otherwise (set totrue), all the workspace groups are shown. No hiding, full slay.
- typeof:
active-only- typeof:
bool - default:
false - Set it to
trueand only active or urgent workspaces get shown. Everything else? Not invited to the party π
- typeof:
ignore-hidden- typeof:
bool - default:
true - If you set it to
false, hidden workspaces will be shown too. The hidden ones get their moment β¨
- typeof:
π¦ FORMAT REPLACEMENTS π¦
These are the lil placeholders you can drop into format:
{name}β Name of workspace assigned by compositor.{id}β ID of workspace assigned by compositor.{icon}β Icon, as defined informat-icons.
π CLICK ACTIONS π
Stuff you can bind to clicks, iykyk:
activateβ Switch to workspace.deactivateβ Deactivate the workspace.closeβ Close the workspace.
π ICONS π
On top of matching by workspace name, you can also set these in format-icons:
defaultβ Will be shown, when no string match is found.activeβ Will be shown, when workspace is active.
β EXAMPLES β
Here's a whole setup, copy-paste ready, no cap:
"ext/workspaces": {
"format": "{name}: {icon}",
"on-click": "activate",
"format-icons": {
"Workspace 1": "",
"Workspace 2": "",
"Workspace 3": "",
"Workspace 4": "",
"active": "",
"default": ""
},
"sort-by-id": true
}
π Style π
The CSS selectors you can style, bestie β go make it cute:
#workspaces#workspaces button#workspaces button.active#workspaces button.urgent#workspaces button.hidden
That's the whole page, and that's a wrap, gorge π«Ά This was waybar-wlr-workspaces(5) from version 2026-02-08 β dated and everythang, iconic of it. Now go sort those workspaces and slay the day away ππ
π¦ where this page comes from
- ubuntu resolute: waybar 0.15.0-1 Β· MIT
- ubuntu stonking: waybar 0.15.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms