# window-size

Source: https://libtmux.org/en/tmux/3.7c/catalog/options/window-size/

> Configure how tmux determines the window size.

option tmux3.7c

Configure how tmux determines the window size.

* Scope

  window

* Type

  Choice

* Default

  `latest`

* Values

  `largest` `smallest` `manual` `latest`

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.7c/manual/set-option/) `-w window-size value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.7c/manual/show-options/) `-w window-size`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/options/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`](https://libtmux.org/en/tmux/3.7c/catalog/options/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`](https://libtmux.org/en/tmux/3.7c/manual/resize-window/) command and the [`aggressive-resize`](https://libtmux.org/en/tmux/3.7c/catalog/options/aggressive-resize/) option.

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/options/window-size/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/window-size/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/window-size/) : present

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/options/window-size/#source)

* Defined in

  [`options-table.c:1537`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options-table.c#L1537)

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/3.7c/reference/c-variable-options_table/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#options-window-size)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/options/window-size/#used-by)

Library documentation that names this option.

* PowerShell

  [`LibTmux\Set-TmuxWindowSize`](https://libtmux.org/en/powershell/latest/reference/libtmux-set-tmuxwindowsize/)

* Julia

  [`LibTmux.resize_pane`](https://libtmux.org/en/julia/latest/reference/libtmux-resize_pane/), [`LibTmux.resize_window`](https://libtmux.org/en/julia/latest/reference/libtmux-resize_window/)

* TypeScript

  [`types.ResizeWindowOptions`](https://libtmux.org/en/ts/latest/reference/types-resizewindowoptions/), [`window.Window.resize`](https://libtmux.org/en/ts/latest/reference/window-window-resize/)

* Rust

  [`options.generated.WINDOW_SIZE`](https://libtmux.org/en/rs/latest/reference/options-generated-window_size/)

* Go

  [`tmux.GlobalWindowScope.SetWindowSize`](https://libtmux.org/en/go/latest/reference/tmux-globalwindowscope-setwindowsize/), [`tmux.Window.SetWindowSize`](https://libtmux.org/en/go/latest/reference/tmux-window-setwindowsize/), [`tmux.WindowOptionValues.WindowSize`](https://libtmux.org/en/go/latest/reference/tmux-windowoptionvalues-windowsize/), [`tmux.WindowSize`](https://libtmux.org/en/go/latest/reference/tmux-windowsize/)

* C#

  [`LibTmux.Window.ResizeAsync`](https://libtmux.org/en/csharp/latest/reference/libtmux-window-resizeasync/)
