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

Automatic layout modes like Dwindle/Master/etc #254

Open
bullsbarry opened this issue Jan 16, 2025 · 3 comments
Open

Automatic layout modes like Dwindle/Master/etc #254

bullsbarry opened this issue Jan 16, 2025 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@bullsbarry
Copy link

bullsbarry commented Jan 16, 2025

Is it possible to add automatic layouts like hyprland's dwindle or master layouts? It would basically be a tree where new windows are added based on the currently active window (dwindle) or order added (master). I have an ultra wide and being able to have auto tiling that continues to split beyond the base layouts would be a nice feature.

@domferr
Copy link
Owner

domferr commented Feb 2, 2025

Hey, thank you for sharing this. I'm open to introduce automatic layout but I'm new to the topic. Would you like to share a bit more about how dwindle and hyprland work? Thanks!

@domferr domferr added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Feb 2, 2025
@bullsbarry
Copy link
Author

At the end of the day the dwindle layout in hyprland is heavily inspired by BSPWM's auto-tiling and it's best described here:
https://github.com/baskerville/bspwm?tab=readme-ov-file#monitors-desktops-and-windows
Each desktop is a tree, each window is a leaf, and splits are based on the ratio of width:height of the window. You can see it in action here
https://youtu.be/2CP_9-jCV6A?t=125

@domferr
Copy link
Owner

domferr commented Feb 4, 2025

This is very interesting, thank you for the links. I saw A LOT of hype on hyprland recently. I'm now very curious to implement automatic layout, like the master one for example, on GNOME. If you have useful readings to know more about the algorithm of the master layout it would be awesome if you could share, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants