tmuxtmuxOptions, hooks and formats

Choose documentation 1

latest

tmux catalog version

Latest (3.7c) 3.7c 3.2a
English

tmux 3.7c options, hooks and formats

tmux 3.7c formats

Variables available in formats, such as status lines and the -F flag of list commands. The list covers tmux 3.7c, 258 entries.

Session27

NameTypeSummary
active_window_indexstringIndex of active window in session
last_window_indexstringIndex of last window in session
session_activestring1 if session active
session_activitytimeTime of session last activity
session_activity_flagstring1 if any window in session has activity
session_alertstringNot in the manual.
session_alertsstringList of window indexes with alerts
session_attachedstringNumber of clients session is attached to
session_attached_liststringList of clients session is attached to
session_bell_flagstring1 if any window in session has bell
session_createdtimeTime session created
session_groupstringName of session group
session_group_attachedstringNumber of clients sessions in group are attached to
session_group_attached_liststringList of clients sessions in group are attached to
session_group_liststringList of sessions in group
session_group_many_attachedstring1 if multiple clients attached to sessions in group
session_group_sizestringSize of session group
session_groupedstring1 if session in a group
session_idstringUnique session ID
session_last_attachedtimeTime session last attached
session_many_attachedstring1 if multiple clients attached
session_markedstring1 if this session contains the marked pane
session_namestringName of session
session_pathstringWorking directory of session
session_silence_flagstring1 if any window in session has silence alert
session_stackstringWindow indexes in most recent order
session_windowsstringNumber of windows in session

Pane78

NameTypeSummary
alternate_onstring1 if pane is in alternate screen
alternate_saved_xstringSaved cursor X in alternate screen
alternate_saved_ystringSaved cursor Y in alternate screen
bracket_paste_flagstringPane bracketed paste flag
cursor_blinkingstring1 if the cursor is blinking
cursor_characterstringCharacter at cursor in pane
cursor_colourstringCursor colour in pane
cursor_flagstringPane cursor flag
cursor_shapestringCursor shape in pane
cursor_very_visiblestring1 if the cursor is in very visible mode
cursor_xstringCursor X position in pane
cursor_ystringCursor Y position in pane
history_all_bytesstringNot in the manual.
history_bytesstringNumber of bytes in window history
history_limitstringMaximum window history lines
history_sizestringSize of history in lines
insert_flagstringPane insert flag
keypad_cursor_flagstringPane keypad cursor flag
keypad_flagstringPane keypad flag
mouse_all_flagstringPane mouse all flag
mouse_any_flagstringPane mouse any flag
mouse_button_flagstringPane mouse button flag
mouse_sgr_flagstringPane mouse SGR flag
mouse_standard_flagstringPane mouse standard flag
mouse_utf8_flagstringPane mouse UTF-8 flag
origin_flagstringPane origin flag
pane_activestring1 if active pane
pane_at_bottomstring1 if pane is at the bottom of window
pane_at_leftstring1 if pane is at the left of window
pane_at_rightstring1 if pane is at the right of window
pane_at_topstring1 if pane is at the top of window
pane_bgstringPane background colour
pane_bottomstringBottom of pane
pane_current_commandstringCurrent command if available
pane_current_pathstringCurrent path if available
pane_deadstring1 if pane is dead
pane_dead_signalstringExit signal of process in dead pane
pane_dead_statusstringExit status of process in dead pane
pane_dead_timetimeExit time of process in dead pane
pane_fgstringPane foreground colour
pane_flagsstringPane flags
pane_floating_flagstring1 if pane is floating
pane_heightstringHeight of pane
pane_idstringUnique pane ID
pane_in_modestringNumber of modes pane is in
pane_indexstringIndex of pane
pane_input_offstring1 if input to pane is disabled
pane_key_modestringExtended key reporting mode in this pane
pane_laststring1 if last pane
pane_leftstringLeft of pane
pane_markedstring1 if this is the marked pane
pane_marked_setstring1 if a marked pane is set
pane_modestringName of pane mode, if any
pane_pathstringPath of pane (can be set by application)
pane_pb_progressstringPane progress bar progress percentage (can be set by application)
pane_pb_statestringPane progress bar state, one of hidden, normal, error, indeterminate, paused (can be set by application)
pane_pidstringPID of first process in pane
pane_pipestring1 if pane is being piped
pane_pipe_pidstringPID of pipe process, if any
pane_rightstringRight of pane
pane_search_stringstringLast search string in copy mode
pane_start_commandstringCommand pane started with
pane_start_pathstringPath pane started with
pane_synchronizedstring1 if pane is synchronized
pane_tabsstringPane tab positions
pane_titlestringTitle of pane (can be set by application)
pane_topstringTop of pane
pane_ttystringPseudo terminal of pane
pane_unseen_changesstring1 if there were changes in pane while in mode
pane_widthstringWidth of pane
pane_xstringX position of pane
pane_ystringY position of pane
pane_zstringZ position of pane
pane_zoomed_flagstring1 if pane is zoomed
scroll_region_lowerstringBottom of scroll region in pane
scroll_region_upperstringTop of scroll region in pane
synchronized_output_flagstring1 if pane has synchronized output enabled
wrap_flagstringPane wrap flag

Paste buffer5

NameTypeSummary
buffer_createdtimeTime buffer created
buffer_fullstringFull buffer content
buffer_namestringName of buffer
buffer_samplestringSample of start of buffer
buffer_sizestringSize of the specified buffer in bytes

Server19

NameTypeSummary
buffer_mode_formatstringNot in the manual.
client_mode_formatstringNot in the manual.
config_filesstringList of configuration files loaded
hoststringHostname of local host
host_shortstringHostname of local host (no domain name)
loop_last_flagstring1 if last window, pane, session, client in the W:, P:, S:, or L: loop
next_session_idstringUnique session ID for next new session
pane_formatstring1 if format is for a pane
pidstringServer PID
server_sessionsstringNumber of sessions
session_formatstring1 if format is for a session
sixel_supportstring1 if server has support for SIXEL
socket_pathstringServer socket path
start_timetimeServer start time
tree_mode_formatstringNot in the manual.
uidstringServer UID
userstringServer user
versionstringServer version
window_formatstring1 if format is for a window

Client28

NameTypeSummary
client_activitytimeTime client last had activity
client_cell_heightstringHeight of each client cell in pixels
client_cell_widthstringWidth of each client cell in pixels
client_control_modestring1 if client is in control mode
client_createdtimeTime client created
client_discardedstringBytes discarded when client behind
client_flagsstringList of client flags
client_heightstringHeight of client
client_key_tablestringCurrent key table
client_last_sessionstringName of the client's last session
client_namestringName of client
client_pidstringPID of client process
client_prefixstring1 if prefix key has been pressed
client_readonlystring1 if client is read-only
client_sessionstringName of the client's session
client_termfeaturesstringTerminal features of client, if any
client_termnamestringTerminal name of client
client_termtypestringTerminal type of client, if available
client_themestringNot in the manual.
client_ttystringPseudo terminal of client
client_uidstringUID of client process
client_userstringUser of client process
client_utf8string1 if client supports UTF-8
client_widthstringWidth of client
client_writtenstringBytes written to client
window_biggerstring1 if window is larger than client
window_offset_xstringX offset into window if larger than client
window_offset_ystringY offset into window if larger than client

Command4

NameTypeSummary
commandstringName of command in use, if any
command_list_aliasstringCommand alias if listing commands
command_list_namestringCommand name if listing commands
command_list_usagestringCommand usage if listing commands

Copy7

NameTypeSummary
copy_cursor_hyperlinkstringHyperlink under cursor in copy mode
copy_cursor_linestringLine the cursor is on in copy mode
copy_cursor_wordstringWord under cursor in copy mode
copy_cursor_xstringCursor X position in copy mode
copy_cursor_ystringCursor Y position in copy mode
copy_positionstringPosition shown in the copy mode indicator
copy_position_limitstringLimit shown in the copy mode indicator

Hook7

NameTypeSummary
hookstringName of running hook, if any
hook_clientstringName of client where hook was run, if any
hook_panestringID of pane where hook was run, if any
hook_sessionstringID of session where hook was run, if any
hook_session_namestringName of session where hook was run, if any
hook_windowstringID of window where hook was run, if any
hook_window_namestringName of window where hook was run, if any

Key9

NameTypeSummary
key_commandstringCommand of the key binding
key_has_repeatstring1 if list contain a repeatable key
key_notestringNote of the key binding
key_prefixstringGlobal key prefix
key_repeatstring1 if key binding is repeatable
key_stringstringString representation of the key binding
key_string_widthstringMaximum key_string width in list
key_tablestringTable name of the key binding
key_table_widthstringMaximum key_table width in list

Mouse8

NameTypeSummary
mouse_hyperlinkstringHyperlink under mouse, if any
mouse_linestringLine under mouse, if any
mouse_panestringNot in the manual.
mouse_status_linestringStatus line on which mouse event took place
mouse_status_rangestringRange type or argument of mouse event on status line
mouse_wordstringWord under mouse, if any
mouse_xstringMouse X position, if any
mouse_ystringMouse Y position, if any

Popup17

NameTypeSummary
popup_centre_xstringCentered in the client
popup_centre_ystringCentered in the client
popup_heightstringHeight of menu or popup
popup_mouse_bottomstringBottom of at the mouse
popup_mouse_centre_xstringHorizontal centre at the mouse
popup_mouse_centre_ystringVertical centre at the mouse
popup_mouse_topstringTop at the mouse
popup_mouse_xstringMouse X position
popup_mouse_ystringMouse Y position
popup_pane_bottomstringBottom of the pane
popup_pane_leftstringLeft of the pane
popup_pane_rightstringRight of the pane
popup_pane_topstringTop of the pane
popup_status_line_ystringAbove or below the status line
popup_widthstringWidth of menu or popup
popup_window_status_line_xstringAt the window position in status line
popup_window_status_line_ystringAt the status line showing the window

Selection7

NameTypeSummary
selection_activestring1 if selection started and changes with the cursor in copy mode
selection_end_xstringX position of the end of the selection
selection_end_ystringY position of the end of the selection
selection_modestringSelection mode
selection_presentstring1 if selection started in copy mode
selection_start_xstringX position of the start of the selection
selection_start_ystringY position of the start of the selection

Window30

NameTypeSummary
window_activestring1 if window active
window_active_clientsstringNumber of clients viewing this window
window_active_clients_liststringList of clients viewing this window
window_active_sessionsstringNumber of sessions on which this window is active
window_active_sessions_liststringList of sessions on which this window is active
window_activitytimeTime of window last activity
window_activity_flagstring1 if window has activity
window_bell_flagstring1 if window has bell
window_cell_heightstringHeight of each cell in pixels
window_cell_widthstringWidth of each cell in pixels
window_end_flagstring1 if window has the highest index
window_flagsstringWindow flags with # escaped as ##
window_heightstringHeight of window
window_idstringUnique window ID
window_indexstringIndex of window
window_last_flagstring1 if window is the last used
window_layoutstringWindow layout description, ignoring zoomed window panes
window_linkedstring1 if window is linked across sessions
window_linked_sessionsstringNumber of sessions this window is linked to
window_linked_sessions_liststringList of sessions this window is linked to
window_marked_flagstring1 if window contains the marked pane
window_namestringName of window
window_panesstringNumber of panes in window
window_raw_flagsstringWindow flags with nothing escaped
window_silence_flagstring1 if window has silence alert
window_stack_indexstringIndex in session most recent stack
window_start_flagstring1 if window has the lowest index
window_visible_layoutstringWindow layout description, respecting zoomed window panes
window_widthstringWidth of window
window_zoomed_flagstring1 if window is zoomed

Other8

NameTypeSummary
current_filestringCurrent configuration file
linestringLine number in the list
next_window_activestring1 if next window in W: loop is active
next_window_indexstringIndex of next window in W: loop
prev_window_activestring1 if previous window in W: loop is active
prev_window_indexstringIndex of previous window in W: loop
rectangle_togglestring1 if rectangle selection is activated
scroll_positionstringScroll position in copy mode
Esc

Type to search.

Reference previewOpen reference