61 lines · 1.9 KB
set -g mouse on
set -sg escape-time 0

# Reload configuration
bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded"

# Enable clipboard. Values here are:
#   on: tmux and applications within tmux can set the clipboard
#   external: only tmux can set the clipboard
#   off: disable clipboard support
set -s set-clipboard on

# Truecolor and italics.
#
# See also some Kitty notes on the subject:
# https://github.com/kovidgoyal/kitty/issues/312
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",xterm-*,rio:Tc"

# Advanced terminal features
set -g focus-events on
set -gq allow-passthrough on # enable kitty image protocol
# set-option -g extended-keys always # breaks bracketed paste in vim :(

# Super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on

# Status bar
set-option -g status-position bottom
set-option -g status-left '#[bg=colour63,fg=colour229,bold] #S '
set-option -g status-left-length 40
set-option -g status-right ' #[fg=colour240]#T  #[fg=colour238]%d %b %Y %l:%M%p '
set-option -g status-right-length 80
set-option -g status-bg colour235
set-option -g status-fg colour241

# Default window title colors
set-window-option -g window-status-format ' #I #W #F '

set-window-option -g window-status-current-format '#[bg=colour211,fg=colour231] #I #W #F '