Skip to content

PoC: Native Sway-like Autotiling#1084

Draft
GGchung69 wants to merge 1 commit into
mahkoh:masterfrom
GGchung69:poc/sway-autotiling
Draft

PoC: Native Sway-like Autotiling#1084
GGchung69 wants to merge 1 commit into
mahkoh:masterfrom
GGchung69:poc/sway-autotiling

Conversation

@GGchung69

Copy link
Copy Markdown

This is a proof of concept to demonstrate how native Sway-like autotiling (golden ratio splitting) can be implemented directly within Jay.

What it does:

  • Introduces an autotile state flag to WlSeat.
  • Updates the toggle-split configuration action to toggle this daemon on and off instead of manually cycling split directions.
  • Hooks into window creation (do_map_tiled) to check the aspect ratio of the currently focused window. If autotile is enabled, it automatically wraps the focused window in a new split container along its longest axis before adding the new window.

This matches the exact behavior of external Sway autotiling scripts, providing dynamic nested containers instead of just changing the layout direction of the existing parent container.

Note: Submitted as a PoC for discussion. Feedback is welcome!

This introduces native autotiling functionality matching Sway's behavior. The feature is controlled by the `WlSeat::autotile` state flag, which intercepts the window creation (`do_map_tiled`) to ensure newly opened windows are dynamically added alongside the longest axis of the currently active window in a new split container.
@GGchung69

Copy link
Copy Markdown
Author

Sorry, I post this with the help of gemini, slopping is maxing

@GGchung69 GGchung69 marked this pull request as draft July 11, 2026 22:09
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

Successfully merging this pull request may close these issues.

1 participant