.\" Generated by scdoc 1.11.3 .\" 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-hyprland-window" "5" "2024-05-06" .PP .SH NAME .PP waybar - hyprland window module .PP .SH DESCRIPTION .PP The \fBwindow\fR module displays the title of the currently focused window in Hyprland.\& .PP .SH CONFIGURATION .PP Addressed by \fBhyprland/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 .SH FORMAT REPLACEMENTS See the output of "hyprctl clients" for examples .PP \fB{title}\fR: The current title of the focused window.\& .PP \fB{initialTitle}\fR: The initial title of the focused window.\& .PP \fB{class}\fR: The current class of the focused window.\& .PP \fB{initialClass}\fR: The initial class 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 "hyprland/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 in 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 one tiled window is visible in the workspace (floating windows may be present) .IP \(bu 4 \fBwindow#waybar.\&\fR Where \fB\fR is the \fBclass\fR (e.\&g.\& \fBchromium\fR) of the solo tiled window in the workspace (use \fBhyprctl clients\fR to see classes) .IP \(bu 4 \fBwindow#waybar.\&floating\fR When there are only floating windows in the workspace .IP \(bu 4 \fBwindow#waybar.\&fullscreen\fR When there is a fullscreen window in the workspace; useful with Hyprland'\&s \fBfullscreen, 1\fR mode .IP \(bu 4 \fBwindow#waybar.\&swallowing\fR When there is a swallowed window in the workspace