-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
App whitelist for rules? #552
Labels
documentation
Documentation
Comments
See #173 <#173>
The reason for not using a separate library is that I simply don’t think it is worth to depend on an external dependency for something that is used as rarely as this. As you mentioned the main case that POSIX ERE does not support is the use case where you want to do a whitelist, which is supported by other means.
… On 31 May 2020, at 20:53, Ethan Bailey ***@***.***> wrote:
I'm trying to create a whitelist of apps to be managed by yabai. On the wiki there are examples for creating rules specific to apps that match a regex, but is there a way to invert the match so that the rule applies to everything except the matched app?
I tried at first to use a negative lookahead in a rule, something like this:
yabai -m config layout bsp
yabai -m rule --add app="^(?!(Google Chrome|iTerm2))(.*)$" manage=off
POSIX ERE doesn't support lookahead operators, so that didn't work. Why is yabai using this engine specifically? Is it faster than something like PCRE?
Maybe I'm missing something obvious - I couldn't find any previous posts on this topic, so I figured I'd ask.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#552>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABPDZV5CRP2WDR5RFQINETDRUKRRDANCNFSM4NPIY5CQ>.
|
Got it, thank you. I figured there was a native way to do this. I think the docs could be improved w.r.t this feature, the syntax was a little unclear. Possibly something like:
|
Added note in the docs. |
unrevre
pushed a commit
to unrevre/yabai
that referenced
this issue
Jan 26, 2022
AndreasNasman
added a commit
to AndreasNasman/.config
that referenced
this issue
Sep 13, 2023
`manage=on` is not the inverse of `manage=off`. koekeishiya/yabai#394 (comment) koekeishiya/yabai#552 (comment)
AndreasNasman
added a commit
to AndreasNasman/.config
that referenced
this issue
Nov 2, 2024
`manage=on` is not the inverse of `manage=off`. koekeishiya/yabai#394 (comment) koekeishiya/yabai#552 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to create a whitelist of apps to be managed by yabai. On the wiki there are examples for creating rules specific to apps that match a regex, but is there a way to invert the match so that the rule applies to everything except the matched app?
I tried at first to use a negative lookahead in a rule, something like this:
POSIX ERE doesn't support lookahead operators, so that didn't work. Why is yabai using this engine specifically? Is it faster than something like PCRE?
Maybe I'm missing something obvious - I couldn't find any previous posts on this topic, so I figured I'd ask.
The text was updated successfully, but these errors were encountered: