Window Options
Window options control the behavior and appearance of individual windows. Set withset-window-option or set -w. Use -g for global window options that apply to all windows.
Window Behavior
aggressive-resize
Type: Flag | Default:off
When window-size is smallest, this controls whether the maximum size is the smallest attached session where it’s current (on), or the smallest session it’s linked to (off).
tmux.conf
automatic-rename
Type: Flag | Default:on
Whether windows are automatically renamed based on the running program.
tmux.conf
automatic-rename-format
Type: String (format) | Default: Complex format Format used to automatically rename windows.window-size
Type: Choice | Default:latest | Choices: largest, smallest, manual, latest
How window size is calculated:
latest: Size of most recently used clientlargest: Size of largest clientsmallest: Size of smallest clientmanual: Size set byresize-windowcommand
monitor-activity
Type: Flag | Default:off
Whether to trigger an alert when activity occurs in the window.
monitor-bell
Type: Flag | Default:on
Whether to trigger an alert on terminal bell.
monitor-silence
Type: Number (seconds) | Default:0 | Range: 0 to INT_MAX
Time after which an alert is triggered by silence. Zero means no alert.
Copy Mode
mode-keys
Type: Choice | Default:emacs | Choices: emacs, vi
Key bindings used in copy mode.
tmux.conf
mode-style
Type: Style | Default:"noattr,bg=yellow,fg=black"
Style of indicators and highlighting in modes (copy mode, choose mode).
copy-mode-match-style
Type: Style | Default:"bg=cyan,fg=black"
Style of search matches in copy mode.
copy-mode-current-match-style
Type: Style | Default:"bg=magenta,fg=black"
Style of the current (active) search match in copy mode.
copy-mode-mark-style
Type: Style | Default:"bg=red,fg=black"
Style of the marked line in copy mode.
copy-mode-selection-style
Type: Style | Default:"#{E:mode-style}"
Style of text selection in copy mode.
wrap-search
Type: Flag | Default:on
Whether searching in copy mode wraps at top or bottom.
Clock Mode
clock-mode-colour
Type: Colour | Default:4 (blue)
Color of the clock in clock mode (clock-mode command).
clock-mode-style
Type: Choice | Default:24 | Choices: 12, 24, 12-with-seconds, 24-with-seconds
Time format of the clock.
Pane Borders
pane-border-style
Type: Style | Default:"default"
Style of inactive pane borders.
pane-active-border-style
Type: Style | Default: Complex format Style of the active pane border.tmux.conf
pane-border-lines
Type: Choice | Default:single | Choices: single, double, heavy, simple, number, spaces
Type of characters used to draw pane borders. Some require UTF-8 support.
pane-border-indicators
Type: Choice | Default:colour | Choices: off, colour, arrows, both
How to indicate the active pane:
off: No indicationcolour: Use different color (viapane-active-border-style)arrows: Display arrow markersboth: Both color and arrows
pane-border-status
Type: Choice | Default:off | Choices: off, top, bottom
Position of pane status lines.
pane-base-index
Type: Number | Default:0 | Range: 0 to USHRT_MAX
Starting index for pane numbers in each window.
Pane Scrollbars
pane-scrollbars
Type: Choice | Default:off | Choices: off, modal, on
Scrollbar display state:
off: No scrollbarsmodal: Show only in copy modeon: Always show
pane-scrollbars-position
Type: Choice | Default:right | Choices: right, left
Position of pane scrollbars.
Window Status Line
window-status-style
Type: Style | Default:"default"
Style of windows in the status line (except current and last).
window-status-current-style
Type: Style | Default:"default"
Style of the current window in the status line.
tmux.conf
window-status-last-style
Type: Style | Default:"default"
Style of the last window in the status line.
window-status-format
Type: String (format) | Default:"#I:#W#{?window_flags,#{window_flags}, }"
Format of windows in the status line (except current).
window-status-current-format
Type: String (format) | Default:"#I:#W#{?window_flags,#{window_flags}, }"
Format of the current window in the status line.
window-status-separator
Type: String | Default:" " (space)
Separator between windows in the status line.
window-status-activity-style
Type: Style | Default:"reverse"
Style of windows with activity alerts in the status line.
window-status-bell-style
Type: Style | Default:"reverse"
Style of windows with bell alerts in the status line.
Layouts
main-pane-width
Type: String | Default:"80"
Width of the main pane in main-vertical layout. Can be a percentage.
main-pane-height
Type: String | Default:"24"
Height of the main pane in main-horizontal layout. Can be a percentage.
other-pane-width
Type: String | Default:"0"
Width of other panes in main-vertical layout. Can be a percentage.
other-pane-height
Type: String | Default:"0"
Height of other panes in main-horizontal layout. Can be a percentage.
tiled-layout-max-columns
Type: Number | Default:0 | Range: 0 to USHRT_MAX
Maximum number of columns in the tiled layout. Zero means no limit.
Menus
menu-style
Type: Style | Default:"default"
Default style of menus.
menu-selected-style
Type: Style | Default:"bg=yellow,fg=black"
Style of selected menu items.
menu-border-style
Type: Style | Default:"default"
Style of menu borders.
menu-border-lines
Type: Choice | Default:single | Choices: single, double, heavy, simple, rounded, padded, none
Type of characters for menu borders.
Popups
popup-style
Type: Style | Default:"default"
Default style of popup windows.
popup-border-style
Type: Style | Default:"default"
Style of popup borders.
popup-border-lines
Type: Choice | Default:single | Choices: single, double, heavy, simple, rounded, padded, none
Type of characters for popup borders.
Display
fill-character
Type: String | Default:""
Character used to fill unused parts of window.
Status Lines
pane-status-style
Type: Style | Default:"default"
Style of panes in multi-pane status line (except current).
pane-status-current-style
Type: Style | Default:"default"
Style of the current pane in multi-pane status line.
session-status-style
Type: Style | Default:"default"
Style of sessions in multi-session status line (except current).
session-status-current-style
Type: Style | Default:"default"
Style of current session in multi-session status line.
Example Configuration
tmux.conf
Example from example_tmux.conf
From the tmux source repository:tmux.conf
Related
Pane Options
Per-pane specific options
Session Options
Session-level settings