# LibTmux.TmuxHooks

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Hooks/TmuxHooks.cs#L60
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-tmuxhooks/

The hooks of one server, session, window, or pane.

Every hook is an array, even with one entry, so a hook is read as a name and
a run of indexed commands rather than as a single value.

## Members

### Common operations

- `GetAllAsync` (method): Reads every hook in the scope.
- `RunAsync` (method): Runs a hook's commands now, without waiting for it to fire.
- `SetAsync` (method): Sets one hook entry.
- `UnsetAsync` (method): Removes a hook.

### Other members

- `GetAsync` (method): Reads one hook.
- `Scope` (property): Gets the scope these hooks are read and written in by default.
