# Enable mouse mode set -g mouse on # Start window numbering at 0 (default) set -g base-index 0 setw -g pane-base-index 0 # Increase scrollback buffer size set -g history-limit 50000 # Use Alt-arrow keys without prefix key to switch panes bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D # Use Alt-1,2,3... to switch windows bind -n M-1 select-window -t 1 bind -n M-2 select-window -t 2 bind -n M-3 select-window -t 3 bind -n M-4 select-window -t 4 bind -n M-5 select-window -t 5 bind -n M-6 select-window -t 6 bind -n M-7 select-window -t 7 bind -n M-8 select-window -t 8 bind -n M-9 select-window -t 9 # Split panes using Alt-| and Alt-- bind -n M-| split-window -h bind -n M-- split-window -v # Easy config reload bind -n M-r source-file ~/.tmux.conf \; display-message "Config reloaded!" # Status bar customization set -g status-style bg=colour240,fg=colour255 set -g status-left "#[fg=colour255,bg=colour240] #S #[fg=colour240,bg=colour238]" set -g status-right "#[fg=colour255,bg=colour240] %H:%M #[fg=colour240,bg=colour238]" # Window status format setw -g window-status-format "#[fg=colour255,bg=colour238] #I:#W " setw -g window-status-current-format "#[fg=colour238,bg=colour255]#[fg=colour238,bg=colour255] #I:#W #[fg=colour255,bg=colour238]" # Pane border colors set -g pane-border-style fg=colour240 set -g pane-active-border-style fg=colour255 # Message text set -g message-style bg=colour238,fg=colour255 # Clock mode setw -g clock-mode-colour colour255 # Enable focus events set -g focus-events on # Increase escape time set -sg escape-time 0 # Enable true color support set -ga terminal-overrides ",*256col*:Tc" # Set default terminal mode to 256 colors set -g default-terminal "screen-256color" # Display a message when a window is created set -g display-time 4000 # Automatically set window title setw -g automatic-rename on set -g set-titles on set -g set-titles-string "#T" # Enable clipboard integration set -g @plugin 'tmux-plugins/tmux-yank' # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm'