negative:regex in windowrule not being treated as regex
#12487
Unanswered
aaron-r-campbell
asked this question in
Bugs - Config
Replies: 1 comment 3 replies
-
|
On a second reading of the wiki, it seems tags are matched by name not regex. Nevertheless, I would be interested if there is a way to match negatively (or positively) against multiple tags as each prop type can be used only once. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a
windowrulethat should only apply if the window doesn't already have certain tags. For example:The
negative:operator is expected to invert the regex, but based on my testing, it seems to only invert the exact match for the string provided, not the regex itself.Steps to reproduce:
Create a
windowrulewithnegative:and a regex pattern to match tags, e.g.:This works as expected, preventing windows with the
tag1tag from matching.However, if you try using a regex inside
negative:, like any of the following:This does not work as expected, and windows with either
tag1(ortag2) are still matched.Expected behavior:
The
negative:operator should invert the entire regex, meaning thematch:tag negative:...rule should exclude windows that have tags matching the specified pattern (e.g.,tag1ortag2).Actual behavior:
The
negative:operator only inverts the exact match for the string provided, without treating the string as regex.Version/Environment:
Beta Was this translation helpful? Give feedback.
All reactions