Choose a layout
What a layout doesPermalink to What a layout does#
A layout decides how a group of windows shares its space. Every workspace has one, and so does every box you make inside a workspace. They're all independent, so one workspace can be a grid while the next is tabbed, and a box can be tabbed while the workspace around it is a row.
Changing a layout only changes where windows appear. Window order and focus stay as they were, and nothing closes. Floating windows stay outside the tiled layout, and a fullscreen window covers it.
The seven layoutsPermalink to The seven layouts#
Layout | What it does |
|---|---|
tabbed | One window at a time, with a tab for each. Good for one thing at a time, or a small screen. |
grid | An equal share for every window. Good for keeping an eye on several things. |
stacked | One window at a time, with a full-width title row for each, so long titles stay readable. |
row | Side by side. Good for comparing things on a wide monitor. |
column | One above the other. Good for a tall monitor. |
dwindle | Each window takes half of the space that's left, so the first one you opened stays the biggest. |
tile | One large window with the rest in a column beside it. Good for one main thing and its helpers. |
Switch layoutsPermalink to Switch layouts#
Press Mod+t to step through the layouts in that order, and Mod+s to go straight to stacked. Each press changes the layout around whatever you have selected. With a window focused, that's the box or workspace holding it. To change the layout of a box or workspace further out, press Mod+o until the stripes cover it, then press Mod+t.
Stripes flash over the group for a moment to show you what changed, and the label names the new layout. The bar shows your workspace's layout. If boxes are new to you, start with the boxes tutorial.
Move around in a layoutPermalink to Move around in a layout#
In grid, row, column, dwindle and tile, Mod+h, Mod+j, Mod+k and Mod+l move focus in that direction on the screen. In tabbed, use Mod+h and Mod+l, or click a title. Stacked uses Mod+j and Mod+k.
At a box edge, focus searches outward for a neighbor. Entering a box restores its remembered window through any nested levels; an unvisited box uses the entering edge. At the workspace edge, focus stays put. Mod+o explicitly selects a box, and directions from a selected box keep box selection at that level while escaping its edges. Add Shift to move the selected window or box instead; movement wraps among siblings.
Set a starting layoutPermalink to Set a starting layout#
Set the configuration's layout for all workspaces, then override individual workspaces when needed. This makes workspace 1 stacked and workspace 2 a declared two-by-two grid.
(config
layout: (layout-stacked)
workspaces: (list (workspace "1")
(workspace "2" layout: (layout-grid shape: '(2 2)))))A declared grid keeps its slots when a window closes. A new window fills an empty slot. When all slots are occupied, the box temporarily uses tabs and reports that the grid is full. Removing the extra window restores the grid. To share one slot, wrap a window in a box, then join other windows to it, as in the boxes tutorial. A floating window remembers its slot; if another window has filled it, returning to tiling adds an extra window rather than displacing the one already there.
When there are too many titles to fitPermalink to When there are too many titles to fit#
Each stacked title row is the same height as a tab. If you have more windows than there's room for rows, Tessera shows the rows nearest the focused window, and the others scroll into view as you move focus. On a very short output it shows just the window. To reorder the rows, use the move keys: dragging a row doesn't reorder it.
Programs that draw their own title bars change this a little. If every window in the group does, Tessera drops its title rows and gives the space back. If only some do, every window keeps a title row so you can still find it. See title bars and floating windows.