Skip to content
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

60/40 split #22

Open
jkananen opened this issue Aug 17, 2021 · 6 comments
Open

60/40 split #22

jkananen opened this issue Aug 17, 2021 · 6 comments

Comments

@jkananen
Copy link

jkananen commented Aug 17, 2021

I would like to split the screen 60/40 as it would allow VS Code with two panes (60%) and a browser (40%) side-by-side on my 27" 2K monitor, but I can't get it to work.

With halfs, VS Code does not have enough space for two panes, and with thirds, the browser window is too narrow.

These configs work if I try them one after another:

spoon.MiroWindowsManager.sizes = { 2, 5/2 }
and
spoon.MiroWindowsManager.sizes = { 2, 5/3 }

But these don't work (the latter of the fives is not effective):
spoon.MiroWindowsManager.sizes = { 2, 5/2, 5/3 }
and
spoon.MiroWindowsManager.sizes = { 2, 5/3, 5/2 }

As the config mentioned at #11 (comment) works for me, I've tried fiddling with the GRID setting..:
spoon.MiroWindowsManager.GRID = {w = 30, h = 24}
... in case the grid would have to be divisible by the pane sizes (the default 24 is not divisible by 5), but this did not help.

Am I doing something wrong?

Thanks!

EDIT: I have macOS Catalina 10.15.7 Big Sur 11.6

@kmARC
Copy link

kmARC commented Jan 17, 2022

I have the same problem

@jruf168
Copy link

jruf168 commented Dec 12, 2023

For anyone that comes along looking for a solution...

Change the grid size to 100/100 and you'll be able to use the the following scaling options without issues.

obj.sizes = {5/3, 5/2, 2}

@jkananen
Copy link
Author

@jruf168 would you mind sharing your config? I tried with the one below, and things got really wonky...

spoon.MiroWindowsManager.fullScreenSizes = { 1 }
spoon.MiroWindowsManager.GRID = { w = 100, h = 100 }
spoon.MiroWindowsManager.sizes = { 5/3, 5/2, 2 }

@jruf168
Copy link

jruf168 commented Dec 13, 2023

The settings I currently use are:

obj.sizes = {5/3, 5/2, 2}
obj.fullScreenSizes = {1, 2, 5/3, 5/2}
obj.GRID = {w = 100, h = 100}

I don't typically align left/right with non-fullscreen windows. If I do i will only tile to a corner and then resize vertically, so you may be experiencing something with non-fullscreen windows?

I''m also using a 4k 27" display at 3840x2160 res.

@jkananen
Copy link
Author

you may be experiencing something with non-fullscreen windows?

On right align, I get a 1/5 sized window, which is pushed about 4/5 out of the screen. On left align, I get a full screen.

Since filing this issue over two years ago, I've upgraded to a 32-inch monitor, so this is not that much of an issue for me anymore. Mostly just curious now if this would work.

@jruf168
Copy link

jruf168 commented Dec 13, 2023

Very interesting the behavior is different from left to right. I imagine on the 32" display something like Yabai might be better suited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants