# LibTmux.cycle_layout

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/1a68a11f071686736937d027b190b43cf946c385/src/topology.jl#L444
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-cycle_layout/

```
cycle_layout(
    transport,
    target::LibTmux.WindowRef;
    direction,
    kwargs...,
)
```

## Methods

Select the next or previous predefined layout. This unzooms the physical window and can resize panes. Direction is `:next` or `:previous`; return the result.

```julia
cycle_layout(transport, window::WindowRef; direction=:next, kwargs...)
```

## Parameters

- `transport` (`Any`)
- `target` (`LibTmux.WindowRef`)
- `direction` (`Symbol`)
  Default: `:next`.
- `kwargs`

## Guides

Pages that discuss `cycle_layout`.

- [Ownership and I/O](/en/julia/latest/topics/ownership/)
