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.
68 entries
After a command38
Every command that has an after hook shares one description: tmux runs the hook after the command finishes.
- after-bind-key
- after-capture-pane
- after-copy-mode
- after-display-message
- after-display-panes
- after-kill-pane
- after-list-buffers
- after-list-clients
- after-list-keys
- after-list-panes
- after-list-sessions
- after-list-windows
- after-load-buffer
- after-lock-server
- after-new-session
- after-new-window
- after-paste-buffer
- after-pipe-pane
- after-refresh-client
- after-rename-session
- after-rename-window
- after-resize-pane
- after-resize-window
- after-save-buffer
- after-select-layout
- after-select-pane
- after-select-window
- after-send-keys
- after-set-buffer
- after-set-environment
- after-set-hook
- after-set-option
- after-show-environment
- after-show-messages
- after-show-options
- after-split-window
- after-unbind-key
| Name | Scope | Summary |
|---|---|---|
| after-queue | session | Not in the manual. |
Window alerts3
| Name | Scope | Summary |
|---|---|---|
| alert-activity | session | Run when a window has activity. |
| alert-bell | session | Run when a window has received a bell. |
| alert-silence | session | Run when a window has been silent. |
Clients9
| Name | Scope | Summary |
|---|---|---|
| client-active | session | Run when a client becomes the latest active client of its session. |
| client-attached | session | Run when a client is attached. |
| client-dark-theme | session | Run when a client switches to a dark theme. |
| client-detached | session | Run when a client is detached |
| client-focus-in | session | Run when focus enters a client |
| client-focus-out | session | Run when focus exits a client |
| client-light-theme | session | Run when a client switches to a light theme. |
| client-resized | session | Run when a client is resized. |
| client-session-changed | session | Run when a client's attached session is changed. |
Panes7
| Name | Scope | Summary |
|---|---|---|
| pane-died | window, pane | Run when the program running in a pane exits, but remain-on-exit is on so the pane has not closed. |
| pane-exited | window, pane | Run when the program running in a pane exits. |
| pane-focus-in | window, pane | Run when the focus enters a pane, if the focus-events option is on. |
| pane-focus-out | window, pane | Run when the focus exits a pane, if the focus-events option is on. |
| pane-mode-changed | window, pane | The pane with ID pane-id has changed mode. |
| pane-set-clipboard | window, pane | Run when the terminal clipboard is set using the xterm(1) escape sequence. |
| pane-title-changed | window, pane | Not in the manual. |
Sessions4
| Name | Scope | Summary |
|---|---|---|
| session-closed | session | Run when a session closed. |
| session-created | session | Run when a new session created. |
| session-renamed | session | Run when a session is renamed. |
| session-window-changed | session | The session with ID session-id changed its active window to the window with ID window-id. |
Windows6
| Name | Scope | Summary |
|---|---|---|
| window-layout-changed | window | Run when a window layout is changed. |
| window-linked | session | Run when a window is linked into a session. |
| window-pane-changed | window | The active pane in the window with ID window-id changed to the pane with ID pane-id. |
| window-renamed | window | Run when a window is renamed. |
| window-resized | window | Run when a window is resized. |
| window-unlinked | session | Run when a window is unlinked from a session. |
Other hooks1
| Name | Scope | Summary |
|---|---|---|
| command-error | session | Run when a command fails. |
No entries match. Clear the filter to see all 68.