Skip to content

Layout commands

Source version: main.

Layout commands. All commands act on the running Rift instance.

Move selection up the tree.

Synopsis
rift-cli execute layout ascend

Move selection down the tree.

Synopsis
rift-cli execute layout descend

Move the selected node in a direction.

Synopsis
rift-cli execute layout move-node <DIRECTION>

Arguments

Join the selected window with neighbor in a direction.

Synopsis
rift-cli execute layout join-window <DIRECTION>

Arguments

Join with a neighbor, or unjoin when the selected window is already joined.

Synopsis
rift-cli execute layout consume-or-expel-window <DIRECTION>

Arguments

Toggle stacked state for the selected container.

Synopsis
rift-cli execute layout toggle-stack

Global orientation toggle that works consistently across layout modes (and between splits/stacks).

Synopsis
rift-cli execute layout toggle-orientation

Unjoin previously joined windows.

Synopsis
rift-cli execute layout unjoin

Toggle floating on the focused selection (tree focus).

Synopsis
rift-cli execute layout toggle-focus-float

Adjust master ratio by a delta (master/stack layout only).

Synopsis
rift-cli execute layout adjust-master-ratio <DELTA>

Arguments

<DELTA>

Adjust master count by a delta (master/stack layout only).

Synopsis
rift-cli execute layout adjust-master-count <DELTA>

Arguments

<DELTA>

Promote the selected window into the master area (master/stack layout only).

Synopsis
rift-cli execute layout promote-to-master

Swap the first master with the first stack window (master/stack layout only).

Synopsis
rift-cli execute layout swap-master-stack

Swap two windows by window id (WindowId { pid: ..., idx: ... }).

Synopsis
rift-cli execute layout swap-windows <A> <B>

Arguments

<A>
<B>

Scroll the strip by a normalized delta (scrolling layout only).

Synopsis
rift-cli execute layout scroll-strip <DELTA>

Arguments

<DELTA>

Snap the strip to the nearest column boundary (scrolling layout only).

Synopsis
rift-cli execute layout snap-strip

Switch to the next preset column width (scrolling layout only).

Synopsis
rift-cli execute layout switch-preset-column-width [OPTIONS]

Options

--backwards

Toggle centering of the selected column in scrolling layout. If invoked again on the same selection, centering is removed.

Synopsis
rift-cli execute layout center-selection