waybar-niri-window(5)
π waybar-niri-window β bestie edition π
okay so this is the waybar-niri-window(5) page, livin' in the File Formats Manual section, and it's literally just about the lil window module that tells you what's poppin' off in niri rn π¦
β¨ NAME β¨
waybar β the niri window module π
πΈ DESCRIPTION πΈ
The window module shows off the title of the currently focused window in niri. That's it. That's the whole gig. She's simple, she's iconic, she ate π
π CONFIGURATION π
She answers to the name niri/window, and only that name, so don't be weird about it π
formatβ typeof:string, default:{title}. This is how you want the info displayed, bestie. When you drop{}in there, the current window title shows up in its place β¨rewriteβ typeof:object. Rules to rewrite the window title. Go peep the rewrite rules section below, it's giving very much essential πseparate-outputsβ typeof:bool. Show the active window of the monitor the bar belongs to, instead of the focused window. So like, per-monitor vibes instead of global main character energy π¦iconβ typeof:bool, default:false. Option to hide the application icon πicon-sizeβ typeof:integer, default:24. Option to change the size of the application icon πexpandβ typeof:bool, default:false. Enables this module to consume all left over space dynamically. She's hungry, let her have the space π
β FORMAT REPLACEMENTS β
Go look at the output of niri msg windows for examples, fr fr π
{title}: The current title of the focused window π{app_id}: The current app ID of the focused window π¦
π REWRITE RULES π
okay so rewrite is an object where the keys are regular expressions and the values are rewrite rules that apply if the expression matches. Rules may contain references to captures of the expression β yes bestie, you can grab those groups π«Ά
Regular expression and replacement follow ECMA-script rules. No cap, that's the rulebook π
If no expression matches, the title is left unchanged. She stays exactly as she is, no notes π
Invalid expressions (e.g., mismatched parentheses) are skipped. Don't come at her with broken regex, she will simply ignore you π
π EXAMPLES π
"niri/window": {
"format": "{}",
"rewrite": {
"(.*) - Mozilla Firefox": "π $1",
"(.*) - zsh": "> [$1]"
}
}
π STYLE π
#windowwindow#waybar.empty #windowβ when no windows are on the workspace π
The following classes are applied to the entire Waybar rather than just the window widget, so they're big-deal energy:
window#waybar.emptyβ when no windows are in the workspace πΈwindow#waybar.soloβ when only one window is on the workspace βwindow#waybar.<app-id>β where app-id is the app ID of the only window on the workspace π¦
and that's the whole page, bestie!! this edition was served to you on 2026-02-08, and it's still waybar-niri-window(5) at the end of the day. slay, stay hydrated, go theme your bar πβ¨π
π¦ 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