# main-pane-width

Source: https://libtmux.org/en/tmux/3.7c/catalog/options/main-pane-width/

> Set the width or height of the main (left or top) pane in the main-horizontal, main-horizontal-mirrored, main-vertical, or main-vertical-mirrored layouts.

option tmux3.7c

Set the width or height of the main (left or top) pane in the main-horizontal, main-horizontal-mirrored, main-vertical, or main-vertical-mirrored layouts.

* Scope

  window

* Type

  Text

* Default

  `80`

* Set

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

* Read

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

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/options/main-pane-width/#description)

Set the width or height of the main (left or top) pane in the `main-horizontal`, `main-horizontal-mirrored`, `main-vertical`, or `main-vertical-mirrored` layouts. If suffixed by ‘`%`’, this is a percentage of the window size.

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

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

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

* Defined in

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

* 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-main-pane-width)

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

Library documentation that names this option.

* Rust

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

* Go

  [`tmux.GlobalWindowScope.SetMainPaneWidth`](https://libtmux.org/en/go/latest/reference/tmux-globalwindowscope-setmainpanewidth/), [`tmux.Window.SetMainPaneWidth`](https://libtmux.org/en/go/latest/reference/tmux-window-setmainpanewidth/), [`tmux.WindowOptionValues.MainPaneWidth`](https://libtmux.org/en/go/latest/reference/tmux-windowoptionvalues-mainpanewidth/)
