Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

method libtmux stable

Window.previous_layout

Cycle to the previous layout via $ tmux previous-layout.

Source and package
Qualified name
libtmux.Window.previous_layout
Module
libtmux
Declared in
Window
Package
libtmux
Source
src/libtmux/window.py
Other languages
PowerShell Julia Ruby Lua TypeScriptRustGo Java C#C++Swift Kotlin Scala F#
previous_layout (self) → Window

Description#

>>> pane1 = window.active_pane
>>> pane2 = window.split()
>>> window.previous_layout()
Window(...)

tmux command previous-layout

In other ports Apply a window's previous layout preset
Esc

Type to search.

Reference preview Open reference