# window.Window.nextLayout

- **Module:** window.Window
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/window.ts#L287
- **Page:** https://libtmux.org/reference/ts/window-window-nextlayout/

```
window.Window.nextLayout() -> Promise<void>
```

Apply this window's next layout preset.

tmux cycles a fixed list — even-horizontal, even-vertical, main-horizontal,
main-vertical, tiled — rearranging the panes already there.

## Example

```ts
await window.nextLayout();
```
