# alert-bell

Source: https://libtmux.org/en/tmux/3.7c/catalog/hooks/alert-bell/

> Run when a window has received a bell.

hook tmux3.7c

Run when a window has received a bell.

* Scope

  session

* Set

  [`set-hook`](https://libtmux.org/en/tmux/3.7c/manual/set-hook/) `alert-bell command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/3.7c/manual/show-hooks/) `alert-bell`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/hooks/alert-bell/#description)

Run when a window has received a bell. See [`monitor-bell`](https://libtmux.org/en/tmux/3.7c/catalog/options/monitor-bell/).

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/hooks/alert-bell/#releases)

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

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/hooks/alert-bell/#source)

* Defined in

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

* Fired from

  * [`alerts.c:208`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/alerts.c#L208) in `notify_winlink`

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#hooks-alert-bell)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/hooks/alert-bell/#used-by)

Library documentation that names this hook.

* Rust

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

* Go

  [`tmux.ServerHookValues.AlertBell`](https://libtmux.org/en/go/latest/reference/tmux-serverhookvalues-alertbell/), [`tmux.SessionHookValues.AlertBell`](https://libtmux.org/en/go/latest/reference/tmux-sessionhookvalues-alertbell/)

* Java

  [`io.github.libtmux.Hooks`](https://libtmux.org/en/java/latest/reference/io-github-libtmux-hooks-hooks/)
