# TmuxHook

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Options.swift#L78
- **Page:** https://libtmux.org/reference/swift/tmuxhook/

One tmux hook: a command tmux runs when something happens.

## Members

- `!=(_:_:)` (function) — Returns a Boolean value indicating whether two values are not equal.
- `name` (property) — The event this runs on, as tmux names it — `after-new-window`.
- `index` (property) — Which slot of the name's array holds this command.
- `command` (property) — The tmux command line to run, kept unparsed because tmux parses it itself at the moment the hook fires.
- `scope` (property) — Which of the two hook tables this was read from.
- `init(name:index:command:scope:)` (method)
- `init(from:)` (method) — Creates a new instance by decoding from the given decoder.
