# Libtmux.Operations.rotate_panes

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L1342
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-operations-rotate_panes/

```
val rotate_panes :
  Window.target -> [ `Backward | `Forward ] -> unit Command.t
```

Rotate pane positions in the selected direction. Pane identities and running processes remain attached to their panes.

## Parameters

- `arg1` (`Window.target`)
- `arg2` (``[ `Backward | `Forward ]``)
