tmuxtmuxOptions, hooks and formats

Choose documentation 1

3.2a

tmux catalog version

Latest (3.7c) 3.7c 3.2a
English

tmux 3.2a options, hooks and formats

tmux 3.2a formats

Variables available in formats, such as status lines and the -F flag of list commands. The list covers tmux 3.2a, 200 entries.

Session22

NameTypeSummary
active_window_indexstringIndex of active window in session
last_window_indexstringIndex of last window in session
session_activitytimeTime of session last activity
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_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_stackstringWindow indexes in most recent order
session_windowsstringNumber of windows in session

Pane58

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
cursor_characterstringCharacter at cursor in pane
cursor_flagstringPane cursor flag
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_statusstringExit status of process in dead pane
pane_fgstringPane foreground colour
pane_heightstringHeight of pane
pane_idstringUnique pane ID
pane_in_modestring1 if pane is in a mode
pane_indexstringIndex of pane
pane_input_offstring1 if input to pane is disabled
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_pidstringPID of first process in pane
pane_pipestring1 if pane is being piped
pane_rightstringRight of pane
pane_search_stringstringLast search string in copy mode
pane_start_commandstringCommand 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_widthstringWidth of pane
scroll_region_lowerstringBottom of scroll region in pane
scroll_region_upperstringTop of scroll region in pane
wrap_flagstringPane wrap flag

Paste buffer4

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

Server13

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)
pane_formatstring1 if format is for a pane
pidstringServer PID
session_formatstring1 if format is for a session
socket_pathstringServer socket path
start_timetimeServer start time
tree_mode_formatstringNot in the manual.
versionstringServer version
window_formatstring1 if format is for a window

Client25

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 readonly
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_ttystringPseudo terminal of client
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

Copy4

NameTypeSummary
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

Hook6

NameTypeSummary
hookstringName of running hook, 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

Mouse5

NameTypeSummary
mouse_linestringLine under mouse, if any
mouse_panestringNot in the manual.
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

Selection6

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_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

Other6

NameTypeSummary
current_filestringCurrent configuration file
linestringLine number in the list
rectangle_togglestring1 if rectangle selection is activated
scroll_positionstringScroll position in copy mode
search_matchstringSearch match if any
search_presentstring1 if search started in copy mode
Esc

Type to search.

Reference previewOpen reference