# LibTmux::Server.hooks

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Server.rakumod#L565
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-server-hooks/

```
method hooks(Str:D :$scope = 'session' --> LibTmux::Configuration::Hooks:D)
```

Observe daemon identity and return global session/window hooks.

Observe daemon identity and return global session/window hooks.

## Parameters

- `$scope?` (`Str:D`)

## tmux command

The tmux commands behind `hooks`.

- [`run-shell`](/en/tmux/latest/manual/run-shell/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_run_shell_entry`](/en/tmux/latest/reference/c-variable-cmd_run_shell_entry/) (attribute)
- [`cmd_run_shell_exec`](/en/tmux/latest/reference/c-function-cmd-run-shell-c-cmd_run_shell_exec/) (function)
