# hook_window

Source: https://libtmux.org/en/tmux/3.7c/catalog/formats/hook_window/

> ID of window where hook was run, if any

format variable tmux3.7c

ID of window where hook was run, if any

* Type

  Text

* Usage

  `#{hook_window}`

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

ID of window where hook was run, if any

## Releases[#](https://libtmux.org/en/tmux/3.7c/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.7c/catalog/formats/hook_window/#source)

* Defined in

  [`notify.c:208`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L208)

* C source reference

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

* CLI Manual

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