Skip to content

Commit

Permalink
windowrules: mention regex caveats
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Dec 21, 2024
1 parent cc11dcf commit b82f549
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/Configuring/Window-Rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b82f549

Please sign in to comment.