5 min di letturaModifica su GitHub

Questa pagina non è ancora tradotta. Il testo qui sotto è in inglese.

Built-in layouts

Home · User guide · Preferences · Custom JavaScript layouts · Shortcuts · Configuration reference

Tessera provides 18 built-in arrangements. Select layouts in Preferences, from the tray menu (Tray and HUD), or in Configuration reference. A layout computes requested frames. The active window manager may enforce its own minimum sizes or constraints. See Custom JavaScript layouts for user-written JavaScript arrangements.

All 18 arrangements

Animation of the tall layout: four windows are added one at a time and the main window is highlighted
tall
Main leftMain windows sit on the left. Secondary windows stack on the right.
Animation of the tall-right layout: four windows are added one at a time and the main window is highlighted
tall-right
Main rightMain windows sit on the right. Secondary windows stack bottom-up on the left.
Animation of the wide layout: four windows are added one at a time and the main window is highlighted
wide
Main topMain windows in a row above a row of secondary windows.
Animation of the two-pane layout: four windows are added one at a time and the main window is highlighted
two-pane
Two paneTwo windows sit side by side. Other windows stay behind the second window.
Animation of the two-pane-right layout: four windows are added one at a time and the main window is highlighted
two-pane-right
Two pane rightTwo windows sit side by side, with the main window on the right. Other windows stay behind the left window.
Animation of the 3column-left layout: four windows are added one at a time and the main window is highlighted
3column-left
Three column leftThree columns, with the main column on the left.
Animation of the middle-wide layout: four windows are added one at a time and the main window is highlighted
middle-wide
Main in the centerThe main window in the middle and the others in columns on both sides.
Animation of the 3column-right layout: four windows are added one at a time and the main window is highlighted
3column-right
Three column rightThree columns, with the main column on the right.
Animation of the 4column-left layout: four windows are added one at a time and the main window is highlighted
4column-left
Four column leftFour columns, with the main column in the middle-left position.
Animation of the 4column-right layout: four windows are added one at a time and the main window is highlighted
4column-right
Four column rightFour columns, with the main column in the middle-right position.
Animation of the fullscreen layout: four windows are added one at a time and the main window is highlighted
fullscreen
FullscreenOne window at a time covers the whole screen.
Animation of the column layout: four windows are added one at a time and the main window is highlighted
column
ColumnsWindows side by side, in equal columns.
Animation of the row layout: four windows are added one at a time and the main window is highlighted
row
RowsWindows stacked, in equal rows.
Animation of the floating layout: four windows are added one at a time and the main window is highlighted
floating
FloatingTessera does not position windows in this layout.
Animation of the widescreen-tall layout: four windows are added one at a time and the main window is highlighted
widescreen-tall
Main left on widescreenMain windows are full-height columns on the left. Secondary windows stack on the right.
Animation of the widescreen-tall-right layout: four windows are added one at a time and the main window is highlighted
widescreen-tall-right
Main right on widescreenMain windows are full-height columns on the right. Secondary windows stack on the left.
Animation of the bsp layout: four windows are added one at a time and the main window is highlighted
bsp
Binary splitEach new window splits the space of another window in two.
Animation of the grid layout: four windows are added one at a time and the main window is highlighted
grid
GridAn even grid with no main pane.

How layouts behave

  • Main and secondary panes: layouts such as tall, tall-right, wide, two-pane, and widescreen-tall divide the work area into a main pane and a secondary pane. Adjust the split ratio with mod1+H / mod1+L, and change how many windows sit in the main pane with mod1+, / mod1+..
  • grid: Tessera’s own grid layout. In a landscape or square area, it fills columns from top to bottom. In a portrait area, it fills rows from left to right. Extra cells go into the last columns or rows. Main-pane count and ratio do not affect it.
  • Four-column layouts: 4column-left and 4column-right use independently adjustable column weights rather than the single main-pane ratio.
  • floating: leaves all windows at their current positions and sizes without rearranging them. To float only specific apps, use Rules instead.

Switching, cycling, and per-workspace memory

  • Your cycle: the default cycle is tall, wide, fullscreen, column. With the default Shortcuts, mod1+Space (Alt+Shift+Space on Linux/Windows, Option+Shift+Space on macOS) cycles forward and mod2+Space cycles backward.
  • Direct shortcuts: mod1+A, S, D, F jump directly to tall, wide, fullscreen, and column. You can bind select-<layout>-layout for any other built-in layout.
  • Per-workspace memory: with per-workspace-layouts: true (the default), Tessera remembers the active layout, main-pane ratio, and main-pane count separately for each workspace and monitor.
  • Spacing and overflow: configure margins between windows, screen-edge padding, and overflow limits (window-max-count) in Preferences (Appearance and Layouts pages). You can also set them in Configuration reference.

Previews and animations

The Preferences window contains live layout previews. Each layout above also has an animated SVG that shows four windows being added one at a time. The animations use a 0.5 main ratio and one main window. The highlighted window is the main window, or the focused window for layouts without a main pane. The SVGs adapt to light and dark themes.

The SVGs live in the wiki under images/layouts/ and use relative paths, so they render on this wiki and on the documentation site. Each SVG uses its layout key as its filename, except 3column-left and 3column-right use three-column-left.svg and three-column-right.svg, and 4column-left and 4column-right use four-column-left.svg and four-column-right.svg.

The generator writes to crates/tessera-ui/assets/layouts/, which the application bundles (see Architecture). To regenerate the animations and sync the wiki, run these commands from the app checkout root:

cargo run -p tessera-ui --example generate_layout_svgs
cp crates/tessera-ui/assets/layouts/*.svg ../wiki/images/layouts/

crates/tessera-ui/tests/layout_svgs.rs checks the copy under crates/ against the generator. In the homepage repository, node scripts/check-wiki.mjs checks wiki/images/layouts/ against src/assets/app/layouts/ and exits non-zero on any difference.