dotfiles/roles/tmux/templates/tmux.conf.j2

47 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-06-16 10:18:43 +00:00
# vi:syntax=tmux
# Reload the config with the "r" key
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# No automatic renaming of windows
set automatic-rename off
# Enable 256-color terminal
set default-terminal "screen-256color"
# Set titles to be informative
set set-titles on
set set-titles-string "tmux: [#H] [#S] [#W:#D #I:#P]"
# Change pane colors
2019-06-16 10:18:43 +00:00
set -g pane-border-style fg=colour237
set -g pane-active-border-style fg=colour199
# Tweak currently active window
2019-06-16 10:18:43 +00:00
setw -g window-status-current-style bg=colour199,fg=colour255,none
2019-06-15 21:19:21 +00:00
setw -g window-status-current-format " #F[#W] "
2019-06-16 10:18:43 +00:00
# Tweak last active window style
setw -g window-status-last-style fg=colour255,bg=colour238,none
# Tweak display of window overview
2019-06-15 21:19:21 +00:00
setw -g window-status-format " #F[#W][#I] "
2019-06-16 10:18:43 +00:00
setw -g window-status-style bg=colour233,fg=colour255,none
# Tweak status line design
2019-06-16 10:18:43 +00:00
set -g status-style bg=colour235,fg=colour199
set status-justify centre
set status-left " [#H] [#S] "
set status-left-length 100
set status-right '[%Y-%m-%d %H:%M.%S]'
# Refresh status bar every 2s
set status-interval 2
# Set some helpful limits & modes
set -g mouse off
set -g history-limit 50000
# Make tmux resize based on smallest client actually viewing the window, not just attached
setw -g aggressive-resize on
# Initialize tmux-plugin-manager
run '~/.tmux/plugins/tpm/tpm'