-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Feature request: Introduce if.is-leader-window
condition to[[on-window-detected]]
#71
Comments
I suppose that you suggest that windows that appear later have a bigger window ID. I didn't check that, but even if it's true, I don't want to rely on that logic. Apple didn't guarantee this logic (frankly speaking, getting window ID is a private API, so Apple guaranteed nothing) I'd suggest another solution: introduce the concept of a "leader window"
The concept could also be called "main window", but I don't want to use the term "main" because macOS accessibility API has some notion of "main window", which means something different (I have never seen the "main window" to be different from "focused window") |
That would be great, yes! |
[[on-window-detected]]
--use window IDif.is-leader-window
condition to[[on-window-detected]]
@nikitabobko regarding your comment, this feature would be useful almost in every app to exclude settings windows, some panels (for example in Xcode when you hit CMD+Shift+O), dialogs, color pickers, etc., etc. |
I checked what could cause that in my config and it turns out that it happens because I'm using the approach with "floating" by default and then per selected apps I use:
How can I achieve the same without annoying tiling of child windows? |
|
I was wondering whether you could include the possibility to specify a condition based on the window ID. Specifically, I would like the main application window of my email client to be managed but automatically float (and ideally center) the windows for new emails I'm writing.
While not perfect, using the window ID could be used to infer that a window is a child window (in this case a new email window).
The text was updated successfully, but these errors were encountered: