Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring/Window-Rules: callout that regexes need a full match #909

Merged
merged 4 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add note for very general regexes
  • Loading branch information
pynappo authored Dec 19, 2024
commit 1573bfe38b7508f026c7299f5d7b6e196cda530b
8 changes: 3 additions & 5 deletions pages/Configuring/Window-Rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ title: Window Rules
Window rules (both V1 and V2) are **case sensitive**. (e.g. `firefox` ≠
`Firefox`)

As of Hyprland v0.46.0, regexes need to fully match the value for the
corresponding rules to apply.

For example, in the case of `kitty`:
As of Hyprland v0.46.0, regexes need to fully match the window values. For
example, in the case of `kitty`:

- `kitty`: OK
- `^(kitty)$`: OK
- `tty`: Used to match, now won't. Use `.*tty.*` to make it act like before.
- `tty`: Used to match, now won't. Use `.*tty.*` to make it act like before, but consider rewriting the rule to be more specific.

{{< /callout >}}

Expand Down