tmuxtmuxOptions, hooks and formats

Choose documentation 1

3.2a

tmux catalog version

Latest (3.7c) 3.7c 3.2a
English

option tmux3.2a

window-size

Configure how tmux determines the window size.

Scope
window
Type
Choice
Default
latest
Values
largest smallest manual latest
Set
set-option -w window-size value
Read
show-options -w window-size

Description#

Configure how tmux determines the window size. If set to largest, the size of the largest attached session is used; if smallest, the size of the smallest. If manual, the size of a new window is set from the default-size option and windows are resized automatically. With latest, tmux uses the size of the client that had the most recent activity. See also the resize-window command and the aggressive-resize option.

Releases#

Source#

Defined in
options-table.c:986
C source reference
options_table
CLI Manual
Original manual entry

Used by#

Library documentation that names this option.

PowerShell
LibTmux\Set-TmuxWindowSize
Julia
LibTmux.resize_pane, LibTmux.resize_window
TypeScript
types.ResizeWindowOptions, window.Window.resize
Rust
options.generated.WINDOW_SIZE
Go
tmux.GlobalWindowScope.SetWindowSize, tmux.Window.SetWindowSize, tmux.WindowOptionValues.WindowSize, tmux.WindowSize
C#
LibTmux.Window.ResizeAsync
Esc

Type to search.

Reference preview Open reference