Skip to content

Master-stack layout

Master-stack divides the tiled area into two parts. With multiple windows and the default settings, one occupies the left 60% and the others share the right side. The supporting “stack” is tiled; it does not overlap like the separate Stack layout.

Use it for an editor with terminals beside it, or a document with reference windows. Choose BSP if every window should have the same role.

Merge this fragment into your existing config:

[settings.layout]
mode = "master_stack"
[settings.layout.master_stack]
master_ratio = 0.6
master_count = 1
master_side = "left"
new_window_placement = "stack"

This example keeps new windows in the supporting area once the master area is full. It is useful when you want your editor to stay in the main area.

The default new_window_placement is master. A new window enters the master area, and an existing window moves to the stack to maintain master_count.

Value When the master area is full
master Put the new window in the master area and move an existing one to the stack
stack Put the new window in the supporting area
focused Insert into the area containing the focused window, then maintain the master count

master_ratio accepts 0.05 through 0.95. With the master on the left or right, it controls width; with the master on the top or bottom, it controls height. master_count must be at least 1.

For the full set of controls, including how windows are divided inside each area, see the layout reference.