# tmux.GlobalWindowScope.SetMonitorActivity

- **Module:** tmux.GlobalWindowScope
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/option_generated.go#L5603
- **Page:** https://libtmux.org/reference/go/tmux-globalwindowscope-setmonitoractivity/

```
tmux.GlobalWindowScope.SetMonitorActivity(ctx: context.Context, value: bool) -> error
```

SetMonitorActivity stores the "monitor-activity" window option as bool (tmux 3.2a or later). Read it with [WindowOptionValues.MonitorActivity] from [GlobalWindowScope.Options]; [GlobalWindowScope.UnsetOption] restores inheritance or the global default.
