mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-02 11:45:57 +01:00
updating window rule regex documentation for more clear help (#256)
This commit is contained in:
parent
46cadc4330
commit
3c2fe7561f
1 changed files with 14 additions and 2 deletions
|
@ -35,9 +35,21 @@ the `RULE` field is unchanged, but in the `WINDOW` field, you can put regexes
|
||||||
for multiple values like so:
|
for multiple values like so:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
windowrulev2 = float,class:(kitty),title:(kitty)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{{< hint type=tip >}}
|
||||||
|
In the case of dynamic window titles such as browser windows keep in mind how powerful regex is.
|
||||||
|
|
||||||
|
for example a window rule of: `windowrule=opacity 0.3 override 0.3 override,title:(Zizaran - Twitch)(.*)$` will match
|
||||||
|
*any* window that contains a string of "Zizaran - Twitch" before any other text. This could be multiple browser windows
|
||||||
|
or other applications that contain the string for any reason.
|
||||||
|
|
||||||
|
|
||||||
|
for the `windowrulev2 = float,class:(kitty),title:(kitty)` example, the `class:(kitty)` `WINDOW` field is what keeps the window rule
|
||||||
|
specific to kitty terminals.
|
||||||
|
{{< /hint >}}
|
||||||
|
|
||||||
For now, the supported fields are:
|
For now, the supported fields are:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
|
|
Loading…
Reference in a new issue