|
NAMEwaybar - hyprland window module DESCRIPTIONThe window module displays the title of the currently focused window in Hyprland. CONFIGURATIONAddressed by hyprland/window format:
rewrite:
separate-outputs:
icon:
icon-size:
expand:
FORMAT REPLACEMENTSSee the output of "hyprctl clients" for examples {title}: The current title of the focused window. {initialTitle}: The initial title of the focused window. {class}: The current class of the focused window. {initialClass}: The initial class of the focused window. REWRITE RULESrewrite 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. Regular expression and replacement follow ECMA-script rules. If no expression matches, the title is left unchanged. Invalid expressions (e.g., mismatched parentheses) are skipped. EXAMPLES"hyprland/window": {
"format": "{}",
"rewrite": {
"(.*) - Mozilla Firefox": "🌎 $1",
"(.*) - zsh": "> [$1]"
}
}
STYLE
The following classes are applied to the entire Waybar rather than just the window widget:
|