# window_active

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

> 1 if window active

format variable tmux3.2a

1 if window active

* Scope

  Describes the window being formatted

* Type

  Text

* Usage

  `#{window_active}`

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

1 if window active

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

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

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

* Defined in

  [`format.c:2885`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L2885)

* C source reference

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

* CLI Manual

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

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/window_active/#used-by)

Library documentation that names this format variable.

* Python

  [`libtmux.neo._best_winlink`](https://libtmux.org/en/py/latest/reference/libtmux-neo-_best_winlink/)

* Go

  [`tmux.FormatValues.WindowActive`](https://libtmux.org/en/go/latest/reference/tmux-formatvalues-windowactive/), [`tmux.TmuxFilter`](https://libtmux.org/en/go/latest/reference/tmux-tmuxfilter/), [`tmux.Window.Active`](https://libtmux.org/en/go/latest/reference/tmux-window-active/)
