.\" Generated by scdoc 1.11.5 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "waybar\-niri\-window" "5" "2026\-08\-31" .PP .SH NAME .PP waybar \- niri window module .PP .SH DESCRIPTION .PP The \fBwindow\fR module displays the title of the currently focused window in niri.\& .PP .SH CONFIGURATION .PP Addressed by \fBniri/window\fR .PP \fBformat\fR: .br typeof: string .br default: {title} .br The format, how information should be displayed.\& On {} the current window title is displayed.\& .PP \fBrewrite\fR: .br typeof: object .br Rules to rewrite window title.\& See \fBrewrite rules\fR.\& .PP \fBseparate\-outputs\fR: .br typeof: bool .br Show the active window of the monitor the bar belongs to, instead of the focused window.\& .PP \fBicon\fR: .br typeof: bool .br default: false .br Option to hide the application icon.\& .PP \fBicon\-size\fR: .br typeof: integer .br default: 24 .br Option to change the size of the application icon.\& .PP \fBexpand\fR: .br typeof: bool .br default: false .br Enables this module to consume all left over space dynamically.\& .PP .SH FORMAT REPLACEMENTS .PP See the output of "niri msg windows" for examples .PP \fB{title}\fR: The current title of the focused window.\& .PP \fB{app_id}\fR: The current app ID of the focused window.\& .PP .SH REWRITE RULES .PP \fBrewrite\fR is an object where keys are regular expressions and values are rewrite rules if the expression matches.\& Rules may contain references to captures of the expression.\& .PP Regular expression and replacement follow ECMA\-script rules.\& .PP If no expression matches, the title is left unchanged.\& .PP Invalid expressions (e.\&g.\&, mismatched parentheses) are skipped.\& .PP .SH EXAMPLES .PP .nf .RS 4 "niri/window": { "format": "{}", "rewrite": { "(\&.*) \- Mozilla Firefox": "🌎 $1", "(\&.*) \- zsh": "> [$1]" } } .fi .RE .PP .SH STYLE .PP .PD 0 .IP \(bu 4 \fB#window\fR .IP \(bu 4 \fBwindow#waybar.\&empty #window\fR When no windows are on the workspace .PD .PP The following classes are applied to the entire Waybar rather than just the window widget: .PP .PD 0 .IP \(bu 4 \fBwindow#waybar.\&empty\fR When no windows are in the workspace .IP \(bu 4 \fBwindow#waybar.\&solo\fR When only one window is on the workspace .IP \(bu 4 \fBwindow#waybar.\&\fR Where \fBapp\-id\fR is the app ID of the only window on the workspace