2020-12-04 01:43:57 +00:00
|
|
|
# Usage options
|
2020-08-01 01:56:04 +00:00
|
|
|
|
2020-12-04 01:43:57 +00:00
|
|
|
## Always tell windows we can use 256 colors.
|
|
|
|
set-option -g default-terminal "tmux-256color"
|
2020-08-01 01:56:04 +00:00
|
|
|
|
2020-12-04 01:43:57 +00:00
|
|
|
## Set scrollback length.
|
|
|
|
set-option -g history-limit 20000
|
2020-08-01 01:56:04 +00:00
|
|
|
|
2020-12-04 01:43:57 +00:00
|
|
|
## Send xterm(1) focus events to windows running under the server.
|
|
|
|
set-option -g focus-events on
|
2020-08-01 01:56:04 +00:00
|
|
|
|
2020-12-04 01:43:57 +00:00
|
|
|
## Indicate modifiers like shift/alt/ctrl using xterm(1) sequences.
|
|
|
|
set-option -g xterm-keys on
|
2020-08-01 01:56:04 +00:00
|
|
|
|
2020-12-04 01:43:57 +00:00
|
|
|
## Set terminal (client) titles appropriately.
|
|
|
|
set-option -g set-titles on
|
|
|
|
set-option -g set-titles-string "tmux - #T"
|
2020-08-01 01:56:04 +00:00
|
|
|
|
2020-12-04 01:43:57 +00:00
|
|
|
## Don't make Esc usage have a delay (which is annoying when using kak(1)).
|
|
|
|
set-option -g escape-time 25
|
2020-08-01 01:56:04 +00:00
|
|
|
|
2020-12-04 01:43:57 +00:00
|
|
|
# Style
|
|
|
|
## Status bar colors.
|
|
|
|
set-option -g status-left-style "fg=colour10"
|
|
|
|
set-option -g status-right-style "fg=colour10"
|
|
|
|
set-option -g status-style "bg=default,fg=colour10"
|
2020-08-01 01:56:04 +00:00
|
|
|
|
2020-12-04 01:43:57 +00:00
|
|
|
## Pane colors.
|
|
|
|
set-option -g pane-active-border-style "bg=default,fg=colour10"
|
|
|
|
|
|
|
|
## Window entries (in status bar) colors.
|
2020-12-04 01:54:26 +00:00
|
|
|
set-option -g window-status-activity-style "bg=default,fg=colour235,bold,reverse"
|
|
|
|
set-option -g window-status-bell-style "bg=default,fg=white,bold,reverse"
|
2020-12-04 01:43:57 +00:00
|
|
|
set-option -g window-status-current-style "bg=default,fg=colour10,bold,reverse"
|
|
|
|
set-option -g window-status-style "bg=default,fg=colour10"
|
|
|
|
|
|
|
|
# Status bar
|
|
|
|
|
|
|
|
set-option -g status on
|
|
|
|
set-option -g status-interval 5
|
|
|
|
set-option -g status-position top
|
|
|
|
set-option -g status-justify left
|
|
|
|
|
|
|
|
## Window format, akin to catgirl(1).
|
|
|
|
set-option -g window-status-format " #I #W "
|
|
|
|
set-option -g window-status-separator ""
|
|
|
|
set-option -g window-status-current-format " #I #W "
|
|
|
|
|
|
|
|
## Nothing on the left, a simple clock and hostname (no domain) on the right.
|
|
|
|
set-option -g status-left ""
|
|
|
|
set-option -g status-right "#h %I:%M %p"
|
|
|
|
set-option -g status-left-length 0
|
|
|
|
|
|
|
|
# Windows
|
|
|
|
set-option -g monitor-activity on
|
|
|
|
set-option -g visual-activity on
|
|
|
|
set-option -g renumber-windows on
|
|
|
|
set-option -g focus-events on
|
2020-08-01 01:56:04 +00:00
|
|
|
|
|
|
|
|