mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-07 14:05:59 +01:00
Window-Rules: Clarify some paragraphs and tips
This commit is contained in:
parent
3b64737c0c
commit
72ae38bc52
1 changed files with 16 additions and 12 deletions
|
@ -6,22 +6,20 @@
|
||||||
|
|
||||||
## Window Rules V1
|
## Window Rules V1
|
||||||
|
|
||||||
You can set window rules for various actions. These are applied on window open!
|
You can set window rules to achieve different behaviours from the active container.
|
||||||
|
|
||||||
|
### Syntax
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
windowrule=RULE,WINDOW
|
windowrule=RULE,WINDOW
|
||||||
```
|
```
|
||||||
|
|
||||||
`RULE` is a rule (and a param if applicable)
|
- `RULE` is a rule (and a param if applicable)
|
||||||
|
- `WINDOW` is a RegEx, either:
|
||||||
`WINDOW` is a RegEx, either:
|
- plain RegEx (for matching a window class);
|
||||||
|
|
||||||
- plain regex (for matching a window class)
|
|
||||||
- `title:` followed by a regex (for matching a window's title)
|
- `title:` followed by a regex (for matching a window's title)
|
||||||
|
|
||||||
you can get both by inspecting `hyprctl clients`
|
#### Examples
|
||||||
|
|
||||||
Examples:
|
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
windowrule=float,^(kitty)$
|
windowrule=float,^(kitty)$
|
||||||
|
@ -50,7 +48,13 @@ xwayland - 0/1
|
||||||
floating - 0/1
|
floating - 0/1
|
||||||
```
|
```
|
||||||
|
|
||||||
Keep in mind you do _not_ need to define all of them, but you need to define at least one.
|
Keep in mind that you *have* to declare at least one field, but not all.
|
||||||
|
|
||||||
|
{{< hint type=tip >}}
|
||||||
|
|
||||||
|
To get informations about windows' class, title, if it uses XWayland or its size, you can use `hyprctl client`.
|
||||||
|
|
||||||
|
{{< /hint >}}
|
||||||
|
|
||||||
## Rules
|
## Rules
|
||||||
|
|
||||||
|
@ -77,7 +81,7 @@ Keep in mind you do _not_ need to define all of them, but you need to define at
|
||||||
| pin | pins the window _note: floating only_ |
|
| pin | pins the window _note: floating only_ |
|
||||||
| noanim | disables the animations for the window |
|
| noanim | disables the animations for the window |
|
||||||
|
|
||||||
_Examples_:
|
#### Examples
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
windowrule = move 100 100,^(kitty)$
|
windowrule = move 100 100,^(kitty)$
|
||||||
|
|
Loading…
Reference in a new issue