# TmuxHook

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Options.swift#L79
- **Page:** https://libtmux.org/en/swift/latest/reference/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.
