libtmux Reference MCP Search
On this page

libtmux::Window::next_layout

View as Markdown

Module
libtmux
Declared in
Window
Package
libtmux-cxx
Source
include/libtmux/entities.hpp
next_layout ( ) expected< void, CommandFailure >
methodreadonly [source]
methodreadonly [source]
next_layout

Exchange positions with another window, keeping both ids.

Step through tmux's preset arrangements, and turn the panes within the one in use.

The layouts are tmux's list, not a caller's: asking for "the next one" is the only way to reach them without naming each. Rotating is a different act — it moves which pane occupies which cell and leaves the cells where they are.

None of the three refuses a window holding a single pane. tmux accepts all of them there and changes nothing, which is worth knowing before treating success as evidence that something moved.

0 declared, 0 inherited

Esc

Type to search.