waybar-niri-workspaces(5)
<h1>β¨ waybar-niri-workspaces(5) β¨</h1>
okay so bestie, you opened waybar-niri-workspaces(5) and it's a page from the File Formats Manual section, which is just fancy talk for "this is a config page, not a command you type." It's all about waybar's niri workspaces module. Let's go π
π NAME π
waybar - niri workspaces module
π¦ DESCRIPTION π¦
The workspaces module displays the currently used workspaces in niri. That's it, that's the job, and it does it gorgeously. β¨
π CONFIGURATION π
Addressed by niri/workspaces
This is where you live, bestie. Every option below goes in there. π
all-outputsβ typeof:bool, default:falseβ If it's set tofalse, workspaces only get shown on the output they're actually on. If you set it totrue, every single workspace shows up on every output. Main character energy, no filter.formatβ typeof:string, default:{value}β The format, i.e. how the information should be displayed. Dress it up however you want πformat-iconsβ typeof:arrayβ Based on the workspace name, index and state, the corresponding icon gets selected. Go look at ICONS below, iykyk.disable-clickβ typeof:bool, default:falseβ If it'sfalse, you can click to change workspace. If it'strue, that behaviour is disabled. Sotrue= hands off,false= click away π«Άdisable-markupβ typeof:bool, default:falseβ If it'strue, the button label will escape pango markup.current-onlyβ typeof:bool, default:falseβ If it'strue, only the active or focused workspace will be shown. Just the one. The main character. βon-updateβ typeof:stringβ A command to execute when the module is updated.expandβ typeof:bool, default:falseβ Enables this module to consume all left over space dynamically. It's stretching out, periodt π
π FORMAT REPLACEMENTS π
These are the little placeholders you can drop into format:
{value}: Name of the workspace, or index for unnamed workspaces, as defined by niri.{name}: Name of the workspace for named workspaces.{icon}: Icon, as defined informat-icons.{index}: Index of the workspace on its output.{output}: Output where the workspace is located.
π§ ICONS π§
Additional to workspace name matching, the following format-icons can be set. Slay π
default: Will be shown, when no string matches are found.focused: Will be shown, when workspace is focused.active: Will be shown, when workspace is active on its output.urgent: Will be shown, when workspace has urgent windows.empty: Will be shown, when workspace is empty.
πΈ EXAMPLES πΈ
"niri/workspaces": {
"format": "{icon}",
"format-icons": {
// Named workspaces
// (you need to configure them in niri)
"browser": "",
"discord": "",
"chat": "<b></b>",
// Icons by state
"active": "",
"default": ""
}
}
π Style π
Selector girlies, this one's for you:
#workspaces button#workspaces button.focused: The single focused workspace.#workspaces button.active: The workspace is active (visible) on its output.#workspaces button.urgent: The workspace has one or more urgent windows.#workspaces button.empty: The workspace is empty.#workspaces button.current_output: The workspace is from the same output as the bar that it is displayed on.#workspaces button#niri-workspace-<name>: Workspaces named this, or index for unnamed workspaces.
no cap, go set up your bar and make niri look absolutely iconic π₯
and that's the whole page bestie π«Ά β this was waybar-niri-workspaces(5), dated 2026-02-08. see you in the next one, mwah π
π¦ 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