2022-08-18 14:59:00 +02:00
|
|
|
waybar-hyprland-window(5)
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
waybar - hyprland window module
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
The *window* module displays the title of the currently focused window in Hyprland.
|
|
|
|
|
|
|
|
# CONFIGURATION
|
|
|
|
|
|
|
|
Addressed by *hyprland/window*
|
|
|
|
|
|
|
|
*format*: ++
|
|
|
|
typeof: string ++
|
2023-07-08 22:29:30 +02:00
|
|
|
default: {title} ++
|
2022-08-18 14:59:00 +02:00
|
|
|
The format, how information should be displayed. On {} the current window title is displayed.
|
|
|
|
|
2022-10-18 13:21:20 +02:00
|
|
|
*rewrite*: ++
|
|
|
|
typeof: object ++
|
|
|
|
Rules to rewrite window title. See *rewrite rules*.
|
|
|
|
|
2023-07-05 02:15:59 +02:00
|
|
|
*separate-outputs*: ++
|
|
|
|
typeof: bool ++
|
|
|
|
Show the active window of the monitor the bar belongs to, instead of the focused window.
|
|
|
|
|
2023-07-08 22:29:30 +02:00
|
|
|
# FORMAT REPLACEMENTS
|
|
|
|
See the output of "hyprctl clients" for examples
|
|
|
|
|
|
|
|
*{title}*: The current title of the focused window.
|
|
|
|
|
2023-07-08 23:11:11 +02:00
|
|
|
*{initialTitle}*: The initial title of the focused window.
|
2023-07-08 22:29:30 +02:00
|
|
|
|
|
|
|
*{class}*: The current class of the focused window.
|
|
|
|
|
2023-07-08 23:11:11 +02:00
|
|
|
*{initialClass}*: The initial class of the focused window.
|
2023-07-08 22:29:30 +02:00
|
|
|
|
2022-10-18 13:21:20 +02:00
|
|
|
# REWRITE RULES
|
|
|
|
|
|
|
|
*rewrite* 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.
|
2022-08-18 14:59:00 +02:00
|
|
|
|
|
|
|
# EXAMPLES
|
|
|
|
|
|
|
|
```
|
|
|
|
"hyprland/window": {
|
2022-10-18 13:21:20 +02:00
|
|
|
"format": "{}",
|
|
|
|
"rewrite": {
|
|
|
|
"(.*) - Mozilla Firefox": "🌎 $1",
|
|
|
|
"(.*) - zsh": "> [$1]"
|
|
|
|
}
|
2022-08-18 14:59:00 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
# STYLE
|
|
|
|
|
|
|
|
- *#window*
|
2023-07-05 02:15:59 +02:00
|
|
|
- *#window.empty* When no windows are in the workspace
|
|
|
|
|
|
|
|
The following classes are applied to the entire Waybar rather than just the
|
|
|
|
window widget:
|
|
|
|
|
|
|
|
- *window#waybar.empty* When no windows are in the workspace
|
|
|
|
- *window#waybar.solo* When one tiled window is visible in the workspace
|
|
|
|
(floating windows may be present)
|
|
|
|
- *window#waybar.<app_id>* Where *<app_id>* is the *class* (e.g. *chromium*) of
|
|
|
|
the solo tiled window in the workspace (use *hyprctl clients* to see classes)
|
|
|
|
- *window#waybar.floating* When there are only floating windows in the workspace
|
|
|
|
- *window#waybar.fullscreen* When there is a fullscreen window in the workspace;
|
|
|
|
useful with Hyprland's *fullscreen, 1* mode
|
2023-07-12 16:56:12 +02:00
|
|
|
- *window#waybar.hidden-window* When there are hidden windows in the workspace;
|
|
|
|
can occur due to window swallowing, *fullscreen, 1* mode, or grouped windows
|