# NOTE: This is the updated tmux.conf for tmux v2.9+. # Most of the style options won't work for tmux < v2.9. # The changes aren't backward compatible, hence the new conf. # See: https://github.com/tmux/tmux/wiki/FAQ#how-do-i-translate--fg--bg-and--attr-options-into--style-options # See: https://github.com/tmux/tmux/issues/1689 # To install tmux3.0a without root permission, see: # https://gist.github.com/luiarthur/8030535486fdbcf9e5e6b65a2d9a7190 # switch panes using hlkj unbind-key l bind-key h select-pane -L bind-key l select-pane -R bind-key k select-pane -U bind-key j select-pane -D unbind-key Left unbind-key Right unbind-key Up unbind-key Down # The modes setw -g clock-mode-colour colour135 setw -g mode-style nobold setw -g mode-style fg=colour196,bg=colour238 # The panes set -g pane-border-style fg=colour238 set -g pane-active-border-style fg=magenta # The statusbar set -g status-position bottom set -g status-style fg=colour137,bg=colour234 set -g status-left '' # set -g status-right '#[bold]#H #[fg=colour233,bg=colour241,bold] %e %B %Y #[fg=colour233,bg=colour245,bold] %H:%M ' set -g status-right "#[fg=colour215,nobold]#H #[bold]$wg_is_keys_off#[fg=colour15,bg=colour236,nobold] %e %B %Y #[fg=colour233,bg=colour245,nobold] %H:%M " set -g status-right-length 50 set -g status-left-length 20 setw -g window-status-current-style fg=colour81,bg=colour238,nobold setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F ' setw -g window-status-style fg=colour138,bg=colour235,none setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' setw -g window-status-bell nobold setw -g window-status-bell-style fg=colour255,bg=colour1 # The messages set -g message-style fg=colour232,bg=colour166,bold # Reorder windows when one is closed set-option -g renumber-windows on # For tmux >= 1.9. Window splitting in same dir needs to be explicit. # NOTE: Comment out if tmux < 1.9 bind-key c new-window -c "#{pane_current_path}" bind-key % split-window -h -c "#{pane_current_path}" bind-key '"' split-window -v -c "#{pane_current_path}" # Mouse mode for tmux >= 2.4 set-option -g mouse on # Copy and paste to clipboard (requires tmux >= 2.4) set-option -s set-clipboard off # bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i" # Auto renumber windows set-option -g renumber-windows on