# window-resized

Source: https://libtmux.org/en/tmux/latest/catalog/hooks/window-resized/

> Run when a window is resized.

hook tmux3.7c

Run when a window is resized.

* Scope

  window

* Set

  [`set-hook`](https://libtmux.org/en/tmux/latest/manual/set-hook/) `window-resized command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/latest/manual/show-hooks/) `window-resized`

## Description[#](https://libtmux.org/en/tmux/latest/catalog/hooks/window-resized/#description)

Run when a window is resized. This may be after the `client-resized` hook is run.

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/hooks/window-resized/#releases)

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

## Source[#](https://libtmux.org/en/tmux/latest/catalog/hooks/window-resized/#source)

* Defined in

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

* Fired from

  * [`resize.c:64`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L64) in `notify_window`

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/latest/reference/c-variable-options_table/), [`notify_window`](https://libtmux.org/en/tmux/latest/reference/c-function-notify_window/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#hooks-window-resized)

## Used by[#](https://libtmux.org/en/tmux/latest/catalog/hooks/window-resized/#used-by)

Library documentation that names this hook.

* Python

  [`libtmux_mcp.tools.hook_tools.show_hooks`](https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-tools-hook_tools-show_hooks/)

* Go

  [`tmux.WindowHookValues.WindowResized`](https://libtmux.org/en/go/latest/reference/tmux-windowhookvalues-windowresized/)
