Skip to contents

Functions to get and set the layout of a tmux window.

Usage

layout(target = NULL)

layout(target) <- value

set_layout(target = NULL, value)

layout_even_horizontal(target = NULL)

layout_even_vertical(target = NULL)

layout_main_horizontal(target = NULL, height = NULL)

layout_main_vertical(target = NULL, width = NULL)

layout_tiled(target = NULL)

layout_next(target = NULL)

layout_previous(target = NULL)

layout_even(target = NULL)

layout_undo(target = NULL)

layout_rotate(target = NULL, reverse = FALSE)

Arguments

target

A tmuxr_window. If NULL, use currently active window.

value

A string. Layout definition or name of preset.

width, height

An integer. Width or height of the main pane.

reverse

A logical. If TRUE the direction in which rotate the window is reversed. Default: FALSE.

Value

A string. Layout definition.