# activity-action

Source: https://libtmux.org/en/tmux/latest/catalog/options/activity-action/

> Set action on window activity when monitor-activity is on.

option tmux3.7c

Set action on window activity when monitor-activity is on.

* Scope

  session

* Type

  Choice

* Default

  `other`

* Values

  `none` `any` `current` `other`

* Set

  [`set-option`](https://libtmux.org/en/tmux/latest/manual/set-option/) `activity-action value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/latest/manual/show-options/) `activity-action`

## Description[#](https://libtmux.org/en/tmux/latest/catalog/options/activity-action/#description)

Set action on window activity when [`monitor-activity`](https://libtmux.org/en/tmux/latest/catalog/options/monitor-activity/) is on. `any` means activity in any window linked to a session causes a bell or message (depending on [`visual-activity`](https://libtmux.org/en/tmux/latest/catalog/options/visual-activity/)) in the current window of that session, `none` means all activity is ignored (equivalent to [`monitor-activity`](https://libtmux.org/en/tmux/latest/catalog/options/monitor-activity/) being off), `current` means only activity in windows other than the current window are ignored and `other` means activity in the current window is ignored but not those in other windows.

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/options/activity-action/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/activity-action/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/activity-action/) : present

## Source[#](https://libtmux.org/en/tmux/latest/catalog/options/activity-action/#source)

* Defined in

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

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#options-activity-action)

## Used by[#](https://libtmux.org/en/tmux/latest/catalog/options/activity-action/#used-by)

Library documentation that names this option.

* Rust

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

* Go

  [`tmux.ActivityAction`](https://libtmux.org/en/go/latest/reference/tmux-activityaction/), [`tmux.GlobalSessionScope.SetActivityAction`](https://libtmux.org/en/go/latest/reference/tmux-globalsessionscope-setactivityaction/), [`tmux.Session.SetActivityAction`](https://libtmux.org/en/go/latest/reference/tmux-session-setactivityaction/), [`tmux.SessionOptionValues.ActivityAction`](https://libtmux.org/en/go/latest/reference/tmux-sessionoptionvalues-activityaction/)
