From 7caaee9edebc0e24649af404eb2cd5bc1372d0bc Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 6 Sep 2022 12:01:18 +0200 Subject: [PATCH] mention rules v2 --- pages/Configuring/Advanced-config.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pages/Configuring/Advanced-config.md b/pages/Configuring/Advanced-config.md index b724a52..fb6a08d 100644 --- a/pages/Configuring/Advanced-config.md +++ b/pages/Configuring/Advanced-config.md @@ -406,6 +406,25 @@ windowrule=float,^(kitty)$ windowrule=move 0 0,title:^(Firefox)(.*)$ ``` +## Window Rules V2 + +In order to allow more flexible rules, while also not breaking compatibility with the above +rule system, window rules v2 were implemented. + +In V2, you are allowed to match multiple variables. + +the `RULE` field is unchanged, but inthe `WINDOW` field, you can put regexes for multiple values like so: +``` +windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ +``` + +For now, the supported fields are: +``` +class title +``` + +Keep in mind you do *not* need to define all of them, but you need to define at least one. + ## Rules | rule | description |