From b82f549a3382aa710394a4b7c2f1aa7bfd7e673a Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 21 Dec 2024 23:13:09 +0000 Subject: [PATCH] windowrules: mention regex caveats --- pages/Configuring/Window-Rules.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/Configuring/Window-Rules.md b/pages/Configuring/Window-Rules.md index 16aefba..ad5b943 100644 --- a/pages/Configuring/Window-Rules.md +++ b/pages/Configuring/Window-Rules.md @@ -99,6 +99,13 @@ size, you can use `hyprctl clients`. {{< /callout >}} +### RegEx writing + +Please note Hyprland uses Google's RE2 for parsing Regex. This means that all operations requiring polynomial +time to compute will not work. See [the re2 wiki](https://github.com/google/re2/wiki/Syntax) for supported extensions. + +If you want to _negate_ a regex, as in pass only when the regex _fails_, you can prefix it with `negative:`, e.g.: `negative:kitty`. + ## Rules ### Static rules