bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!" # XDG-friendly plugin + save locations set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.local/share/tmux/plugins' set -g @tpm_plugins_dir '~/.local/share/tmux/plugins' set -g @resurrect-dir '~/.local/state/tmux/resurrect' # Use vi mode setw -g mode-keys vi # Improve colors set -g default-terminal "tmux-256color" set -as terminal-features ",xterm-256color:RGB" # remove ESC delay set -s escape-time 0 # Status line #set-option -g status-style "fg=#000000,bg=#FF6600" set -g status-style fg=#000000,bg=#FF6600 # Start window and pane numbering at 1 set -g base-index 1 setw -g pane-base-index 1 # Renumber windows when one is closed (no gaps) set -g renumber-windows on set -g display-time 4000 # 4 seconds set -g mouse on # Status bar refresh interval (seconds) set -g status-interval 5 # Status bar position: bottom (default) or top set -g status-position bottom # Status bar colors #set -g status-bg colour234 # dark gray background #set -g status-fg white # white text # Left side: session name and window list set -g status-left-length 30 set -g status-left "#[fg=green]#S #[default]" # Toggle mouse with Prefix + m bind m if -F '#{mouse}' \ 'set -g mouse off; display-message "mouse: off"' \ 'set -g mouse on; display-message "mouse: on"' set -g status-right "" # Tmux Plugin Manager set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' # Continuum settings set -g @continuum-restore 'on' # Auto-restore on tmux startup set -g @continuum-save-interval '15' # Auto-save every 15 minutes # Initialize TPM (keep this line at the very bottom of tmux.conf) run '~/.local/share/tmux/plugins/tpm/tpm'