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
active_window_index
Index of active window in session
last_window_index
Index of last window in session
session_activity
Time of session last activity
session_alerts
List of window indexes with alerts
session_attached
Number of clients session is attached to
session_attached_list
List of clients session is attached to
session_created
Time session created
session_group
Name of session group
session_group_attached
Number of clients sessions in group are attached to
session_group_attached_list
List of clients sessions in group are attached to
session_group_list
List of sessions in group
session_group_many_attached
1 if multiple clients attached to sessions in group
session_group_size
Size of session group
session_grouped
1 if session in a group
session_id
Unique session ID
session_last_attached
Time session last attached
session_many_attached
1 if multiple clients attached
session_marked
1 if this session contains the marked pane
session_name
Name of session
session_path
Working directory of session
session_stack
Window indexes in most recent order
session_windows
Number of windows in session
Pane58
alternate_on
1 if pane is in alternate screen
alternate_saved_x
Saved cursor X in alternate screen
alternate_saved_y
Saved cursor Y in alternate screen
cursor_character
Character at cursor in pane
cursor_flag
Pane cursor flag
cursor_x
Cursor X position in pane
cursor_y
Cursor Y position in pane
history_bytes
Number of bytes in window history
history_limit
Maximum window history lines
history_size
Size of history in lines
insert_flag
Pane insert flag
keypad_cursor_flag
Pane keypad cursor flag
keypad_flag
Pane keypad flag
mouse_all_flag
Pane mouse all flag
mouse_any_flag
Pane mouse any flag
mouse_button_flag
Pane mouse button flag
mouse_sgr_flag
Pane mouse SGR flag
mouse_standard_flag
Pane mouse standard flag
mouse_utf8_flag
Pane mouse UTF-8 flag
origin_flag
Pane origin flag
pane_active
1 if active pane
pane_at_bottom
1 if pane is at the bottom of window
pane_at_left
1 if pane is at the left of window
pane_at_right
1 if pane is at the right of window
pane_at_top
1 if pane is at the top of window
pane_bg
Pane background colour
pane_bottom
Bottom of pane
pane_current_command
Current command if available
pane_current_path
Current path if available
pane_dead
1 if pane is dead
pane_dead_status
Exit status of process in dead pane
pane_fg
Pane foreground colour
pane_height
Height of pane
pane_id
Unique pane ID
pane_in_mode
1 if pane is in a mode
pane_index
Index of pane
pane_input_off
1 if input to pane is disabled
pane_last
1 if last pane
pane_left
Left of pane
pane_marked
1 if this is the marked pane
pane_marked_set
1 if a marked pane is set
pane_mode
Name of pane mode, if any
pane_path
Path of pane (can be set by application)
pane_pid
PID of first process in pane
pane_pipe
1 if pane is being piped
pane_right
Right of pane
pane_search_string
Last search string in copy mode
pane_start_command
Command pane started with
pane_synchronized
1 if pane is synchronized
pane_tabs
Pane tab positions
pane_title
Title of pane (can be set by application)
pane_top
Top of pane
pane_tty
Pseudo terminal of pane
pane_width
Width of pane
scroll_region_lower
Bottom of scroll region in pane
scroll_region_upper
Top of scroll region in pane
wrap_flag
Pane wrap flag
Paste buffer4
buffer_created
Time buffer created
buffer_name
Name of buffer
buffer_sample
Sample of start of buffer
buffer_size
Size of the specified buffer in bytes
Server13
config_files
List of configuration files loaded
host
Hostname of local host
host_short
Hostname of local host (no domain name)
pane_format
1 if format is for a pane
pid
Server PID
session_format
1 if format is for a session
socket_path
Server socket path
start_time
Server start time
version
Server version
window_format
1 if format is for a window
Client25
client_activity
Time client last had activity
client_cell_height
Height of each client cell in pixels
client_cell_width
Width of each client cell in pixels
client_control_mode
1 if client is in control mode
client_created
Time client created
client_discarded
Bytes discarded when client behind
client_flags
List of client flags
client_height
Height of client
client_key_table
Current key table
client_last_session
Name of the client's last session
client_name
Name of client
client_pid
PID of client process
client_prefix
1 if prefix key has been pressed
client_readonly
1 if client is readonly
client_session
Name of the client's session
client_termfeatures
Terminal features of client, if any
client_termname
Terminal name of client
client_termtype
Terminal type of client, if available
client_tty
Pseudo terminal of client
client_utf8
1 if client supports UTF-8
client_width
Width of client
client_written
Bytes written to client
window_bigger
1 if window is larger than client
window_offset_x
X offset into window if larger than client
window_offset_y
Y offset into window if larger than client
Command4
command
Name of command in use, if any
command_list_alias
Command alias if listing commands
command_list_name
Command name if listing commands
command_list_usage
Command usage if listing commands
Copy4
copy_cursor_line
Line the cursor is on in copy mode
copy_cursor_word
Word under cursor in copy mode
copy_cursor_x
Cursor X position in copy mode
copy_cursor_y
Cursor Y position in copy mode
Hook6
hook
Name of running hook, if any
hook_pane
ID of pane where hook was run, if any
hook_session
ID of session where hook was run, if any
hook_session_name
Name of session where hook was run, if any
hook_window
ID of window where hook was run, if any
hook_window_name
Name of window where hook was run, if any
Mouse5
mouse_line
Line under mouse, if any
mouse_word
Word under mouse, if any
mouse_x
Mouse X position, if any
mouse_y
Mouse Y position, if any
Popup17
popup_centre_x
Centered in the client
popup_centre_y
Centered in the client
popup_height
Height of menu or popup
popup_mouse_bottom
Bottom of at the mouse
popup_mouse_centre_x
Horizontal centre at the mouse
popup_mouse_centre_y
Vertical centre at the mouse
popup_mouse_top
Top at the mouse
popup_mouse_x
Mouse X position
popup_mouse_y
Mouse Y position
popup_pane_bottom
Bottom of the pane
popup_pane_left
Left of the pane
popup_pane_right
Right of the pane
popup_pane_top
Top of the pane
popup_status_line_y
Above or below the status line
popup_width
Width of menu or popup
popup_window_status_line_x
At the window position in status line
popup_window_status_line_y
At the status line showing the window
Selection6
selection_active
1 if selection started and changes with the cursor in copy mode
selection_end_x
X position of the end of the selection
selection_end_y
Y position of the end of the selection
selection_present
1 if selection started in copy mode
selection_start_x
X position of the start of the selection
selection_start_y
Y position of the start of the selection
Window30
window_active
1 if window active
window_active_clients
Number of clients viewing this window
window_active_clients_list
List of clients viewing this window
window_active_sessions
Number of sessions on which this window is active
window_active_sessions_list
List of sessions on which this window is active
window_activity
Time of window last activity
window_activity_flag
1 if window has activity
window_bell_flag
1 if window has bell
window_cell_height
Height of each cell in pixels
window_cell_width
Width of each cell in pixels
window_end_flag
1 if window has the highest index
window_flags
Window flags with # escaped as ##
window_height
Height of window
window_id
Unique window ID
window_index
Index of window
window_last_flag
1 if window is the last used
window_layout
Window layout description, ignoring zoomed window panes
window_linked
1 if window is linked across sessions
window_linked_sessions
Number of sessions this window is linked to
window_linked_sessions_list
List of sessions this window is linked to
window_marked_flag
1 if window contains the marked pane
window_name
Name of window
window_panes
Number of panes in window
window_raw_flags
Window flags with nothing escaped
window_silence_flag
1 if window has silence alert
window_stack_index
Index in session most recent stack
window_start_flag
1 if window has the lowest index
window_visible_layout
Window layout description, respecting zoomed window panes
window_width
Width of window
window_zoomed_flag
1 if window is zoomed
Other6
current_file
Current configuration file
line
Line number in the list
rectangle_toggle
1 if rectangle selection is activated
scroll_position
Scroll position in copy mode
search_match
Search match if any
search_present
1 if search started in copy mode