-
Notifications
You must be signed in to change notification settings - Fork 0
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
Set window size and/or position #63
Comments
Hi @Just-Insane , thanks for the question - didn't even know there were alredy people interested in this. :) Actually I was planning to implement something like that as I am also having an ultra wide screen. I still have two very raw ideas, but I did not come around to experiment / try this out yet:
The As I am currently working on #30 , I am not sure when I'll come around to trying this. I am happy for contributions, however ;) |
Yea, I have an open issue for this on the Yabai repo. koekeishiya/yabai#814 I’m honestly not sure why the resize option in bsp is not pixel based, it seems odd to me for it to be a ratio. i am currently trying out the float option, but I’m having a hard time figuring out a one-command solution for gridding multiple windows in a desired order. It is certainly a tuff situation since there is no easy way to tell which windows are beside each other that I could find? |
If I am not mistaken, I think this was also already discuseed in this thread: koekeishiya/yabai#658 Unfortunately, with no real conclussion. I will also play around with it a little bit more. |
Yea... I was in that thread as well. Looking at the source, with my non-existent C knowledge, I'm not sure why resizing in BSP was done as a ratio. I'm also not sure why resizing in one direction works, but then not the other direction, but both directions work fine individually. |
I was just playing around a bit more. It seems like when applying resizing from left to right and actually just always resizing the right border, it works more reliably. So it might actually be possible to support a fixed layout with sizes in yco. We just have to implement the algorithm to apply several commands for the windows from left to right on a space. However, this can be a bit tricky if there are more windows for a given app (e.g. I have two terminals in a vertical split on the left pane). I'll try some stuff this week and see what I can do. |
What commands where you using to resize only the right border? I think I had tried that also, but it was still failing due to the ratio. |
I used e.g. At least for me this always just expands/decreases the right side of the window. |
I’ve tried that on the left-most window and the window to the right of it, and I wasn’t able to get it to work, I kept getting stuck with ratio issues. I could get the windows close to my desired aspect ratio but not quite.
On Feb 1, 2021, at 4:18 AM, David Losert <[email protected]> wrote:
I used e.g. yabai -m window 104 --resize right:100:0.
At least for me this always just expands/decreases the right side of the window.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#63 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADZKZDAHLKIB3SOJFSAZMI3S4ZWVBANCNFSM4W2J6AWA>.
|
I just released Version v1.5.0-alpha.1. It should actually be 2.0.0.-alpha.1, but I messed up the commit message. Will fix that later. And it took a while but I just had a kid so time is precious ;). In the new version i completely reimplemented the
I chose to make the Also, as you can now define the number of windows, I implemented the Open Windows Feature (#65). I still have a lot of cleanup todo (I am still not happy with the But if you are just looking for the dirty functionality for now, you can try the 1.5.0-alpha and tell me if everything is not working. |
Oh, and the The Gonna try to implement a default config that kind of already includes those common cases. |
Hello,
I am wondering if there is any plan to add functionality for setting specific window sizes and/or positions on screen?
I have an ultrawide monitor and I prefer having a “priority” window in the center that is wider than the two+ windows to each side. As far as I can tell this isn’t easily possible in Yabai unless you float all windows, which IMO defeats the purpose. It doesn’t help that the window resize commands for managed non-floated windows is relative and not pixel based from what I can tell.
The text was updated successfully, but these errors were encountered: