# Window layouts

Source: https://libtmux.org/en/csharp/latest/workspace/configuration/layouts/

> Arrange panes with tmux layout names or a saved layout.

Choose a layout for each window. `even-horizontal` gives panes equal widths:

```yaml title="layouts.yaml"
session_name: layouts-example
windows:
  - window_name: work
    layout: even-horizontal
    panes: [null, null, null]
```

Other common tmux names include `even-vertical`, `main-horizontal`,
`main-vertical` and `tiled`. Full names avoid version-dependent abbreviation
ambiguity. Available names follow the selected tmux daemon.

## Saved layouts and terminal size

A captured layout describes pane geometry. Loading validates its syntax and
pane capacity, then tmux applies it to the actual window size. Resizing can
change the final dimensions. Use a named layout when exact saved geometry is
unnecessary.

Set window and pane `focus` explicitly when the active target matters. Layout
arrangement and active-pane selection are different settings.

[Capture](https://libtmux.org/en/csharp/latest/workspace/cli/freeze/) can save a running layout; inspect it before
[reloading](https://libtmux.org/en/csharp/latest/workspace/guides/export-session/) on a smaller terminal.

[CLI source](https://github.com/libtmux/libtmux-dotnet/blob/f77fe776ba67a04abb20ddbbc26cf4a000d63b74/src/LibTmux.Workspace.Cli/README.md).
