# window.Window.nextLayout

- **Module:** window.Window
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/window.ts#L305
- **Page:** https://libtmux.org/en/ts/latest/reference/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();
```
