Increase window padding when window count low #1419
yellingintothevoid
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
I don't think you can script your way around that. Might have to either add some form of syntax to allow batching, or just introduce something like |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thank you for that example! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since I'm using a 27" iMac, I don't need a single window to fill up the entire screen. To decrease window size, I've written a script that increases window padding when the number of windows is low. This is basically the same idea as in this discussion, but since it's more than a year old, I figured I'd open up a new one.
Using window padding to change window size introduces a noticeable delay when opening new windows though. Which is why I'd like to ask for help with my script or even a different method of achieving what I want. The delay is introduced by requiring four separate adjustments for padding (top, bottom, left, right). This means all windows get visibly shifted four times every time I open a new one. I'm very much a beginner to shell scripting and programming in general and I'm aware that my code is very likely to be pretty bad. I'm honestly quite surprised I've gotten this to work at all.
Whether this can be improved or not, yabai is still an amazing window manager and I'm grateful for all the work and continual improvements that are being put into it!
Beta Was this translation helpful? Give feedback.
All reactions