-
-
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
Is it feasible/sensible to pass several messages to yabai at once? #1072
Comments
Possibly, yes, although I am unsure how noticeable it would be. Currently, you spawn a yabai process to send the message to the running instance of yabai. The running instance of yabai processes the message and sends a signal to the scripting addition running inside Dock.app. These steps then happen twice in your case, as you want to change space on two displays. Allowing multiple messages would get rid of the overhead of spawning a process the second time around. |
In SketchyBar implementing message batching helped a lot in responsiveness and reliability. Additionally, it cleans up the configuration file a bit. I had issues with messages getting lost if there where too many at any point in time and this change also helped to reduce lost messages. I am not sure if the lost messages where due to me bricking your server client code or if this could also be still a problem in yabai. |
This issue was fixed in yabai way back. I assume sketchybar/spacebar didn't catch up with these changes after branching. |
#1371 may be of interest, but it isn't exactly the same as what this issue is about. |
@koekeishiya I would like to test this. However, I have the same compilation error as #1200 I am not yet on Monterey and I do not want to upgrade my whole system just for testing this. I also do not have a Developer ID. macOS version 11.6.8 |
Hm I can build from source just fine on my Big Sur machine. With that version of Xcode your Apple SDKs should be updated to include that definition: https://developer.apple.com/documentation/appkit/nsscreen/3882821-safeareainsets?language=objc |
Now, I could test it with following example command to change on three displays at the same time the space:
which works great. However, I cannot quantify the speed improvement compared to |
I have two displays and want to change the spaces of both displays at once.
There is a slight time gap between both displays changing the space.
Would the time gap be reduced if yabai could accept two or more messages at once?
The syntax would be like
The text was updated successfully, but these errors were encountered: