Skip to content

Add open-consume-into-column window rule#3508

Open
y0usaf wants to merge 4 commits intoniri-wm:mainfrom
y0usaf:feat/open-consume-into-column
Open

Add open-consume-into-column window rule#3508
y0usaf wants to merge 4 commits intoniri-wm:mainfrom
y0usaf:feat/open-consume-into-column

Conversation

@y0usaf
Copy link

@y0usaf y0usaf commented Feb 25, 2026

Adds a new initial-configure window rule open-consume-into-column that automatically merges a newly opened window into an existing column containing another window with the same rule, rather than creating a new column.

Motivated by longstanding requests:

window-rule {
    match app-id="^foot$"
    default-column-display "tabbed"
    open-consume-into-column "active"
}

Two strategies:

  • "active" — prefer the column to the left of the new window (the previously active column in the common case), falling back to the first match
  • "first" — always consume into the first (leftmost) matching column

Only applies to tiled windows. Floating windows are unaffected.

y0usaf and others added 3 commits February 25, 2026 09:46
Adds a new initial-configure window rule `open-consume-into-column true`
that automatically merges a newly opened window into the first existing
column containing another window with the same rule, rather than creating
a new column.

This enables use cases like stacking all terminals together, or grouping
terminals and a browser in the same column — optionally combined with
`default-column-display "tabbed"` for a tabbed appearance.

Matching strategy: the new window is consumed into the first column
(left-to-right) that has any tile with `open-consume-into-column true`.
Only applies to tiled windows; floating windows are unaffected.
@Sempyos Sempyos added area:layout Columns, workspaces, scrolling, fullscreen, resize area:config Config parsing, default config, new settings labels Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:config Config parsing, default config, new settings area:layout Columns, workspaces, scrolling, fullscreen, resize

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants