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

expose width/height factor #43

Open
JoseConseco opened this issue Nov 4, 2022 · 3 comments
Open

expose width/height factor #43

JoseConseco opened this issue Nov 4, 2022 · 3 comments

Comments

@JoseConseco
Copy link
Contributor

It would be great to have parameter for width/height ratio like so:
new_layout = "splitv" if con.rect.height > **fac***con.rect.width else "splith"
With this set to, for example, 1.5 - auto-tile we would have wider windows, before they would be split in top/down. When coding, I prefer my windows to be slightly wider than tall.

@nwg-piotr
Copy link
Owner

On my full HD screens it looks a bit useless. Does it make sense on 4K or something?

@JoseConseco
Copy link
Contributor Author

Ok, my bad 1.5 is not useful. It was supposed to be inverse.
Splitting with fac = 1 :
image
Factor 0.62 (inverse of golden ratio)
image
The advantage IMO is that when having long lines, it is preferred to have bias toward top/bottom split. If window is wide enough, it would split left/right.

@nwg-piotr
Copy link
Owner

nwg-piotr commented Nov 5, 2022

Feel free to open a PR.

I use vertical 1200 x 1920 output for coding. If I happen to need something more than just IDE on it, it looks not bad with depth limit set to 3.

image

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

2 participants