tmux 3.7c hooks
Events that run tmux commands, with the scope each hook belongs to and where tmux fires it. The list covers tmux 3.7c, 68 entries.
After a command38
after-bind-key
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-capture-pane
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-copy-mode
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-display-message
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-display-panes
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-kill-pane
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-list-buffers
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-list-clients
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-list-keys
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-list-panes
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-list-sessions
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-list-windows
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-load-buffer
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-lock-server
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-new-session
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-new-window
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-paste-buffer
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-pipe-pane
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-refresh-client
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-rename-session
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-rename-window
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-resize-pane
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-resize-window
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-save-buffer
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-select-layout
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-select-pane
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-select-window
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-send-keys
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-set-buffer
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-set-environment
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-set-hook
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-set-option
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-show-environment
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-show-messages
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-show-options
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-split-window
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
after-unbind-key
A command's after hook is run after it completes, except when the command is run as part of a hook itself.
Window alerts3
alert-activity
Run when a window has activity.
alert-bell
Run when a window has received a bell.
alert-silence
Run when a window has been silent.
Clients9
client-active
Run when a client becomes the latest active client of its session.
client-attached
Run when a client is attached.
client-dark-theme
Run when a client switches to a dark theme.
client-detached
Run when a client is detached
client-focus-in
Run when focus enters a client
client-focus-out
Run when focus exits a client
client-light-theme
Run when a client switches to a light theme.
client-resized
Run when a client is resized.
client-session-changed
Run when a client's attached session is changed.
Panes7
pane-died
Run when the program running in a pane exits, but remain-on-exit is on so the pane has not closed.
pane-exited
Run when the program running in a pane exits.
pane-focus-in
Run when the focus enters a pane, if the focus-events option is on.
pane-focus-out
Run when the focus exits a pane, if the focus-events option is on.
pane-mode-changed
The pane with ID pane-id has changed mode.
pane-set-clipboard
Run when the terminal clipboard is set using the xterm(1) escape sequence.
Sessions4
session-closed
Run when a session closed.
session-created
Run when a new session created.
session-renamed
Run when a session is renamed.
session-window-changed
The session with ID session-id changed its active window to the window with ID window-id.
Windows6
window-layout-changed
Run when a window layout is changed.
window-linked
Run when a window is linked into a session.
window-pane-changed
The active pane in the window with ID window-id changed to the pane with ID pane-id.
window-renamed
Run when a window is renamed.
window-resized
Run when a window is resized.
window-unlinked
Run when a window is unlinked from a session.
Other hooks1
command-error
Run when a command fails.