# main-pane-width

Source: https://libtmux.org/en/tmux/3.2a/catalog/options/main-pane-width/

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

option tmux3.2a

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

* Scope

  window

* Type

  Text

* Default

  `80`

* Set

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

* Read

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

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

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

## Releases[#](https://libtmux.org/en/tmux/3.2a/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.2a/catalog/options/main-pane-width/#source)

* Defined in

  [`options-table.c:844`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options-table.c#L844)

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#options-main-pane-width)

## Used by[#](https://libtmux.org/en/tmux/3.2a/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/)
