# hook_window

Source: https://libtmux.org/en/tmux/3.2a/catalog/formats/hook_window/

> ID of window where hook was run, if any

format variable tmux3.2a

ID of window where hook was run, if any

* Type

  Text

* Usage

  `#{hook_window}`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/hook_window/#description)

ID of window where hook was run, if any

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/hook_window/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/formats/hook_window/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/formats/hook_window/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/hook_window/#source)

* Defined in

  [`notify.c:46`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L46)

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#hook_window)
