# easy reload config bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded." # Enable full colors set-option -sa terminal-overrides ",xterm*:Tc" # set window split bind-key v split-window -h -c "#{pane_current_path}" bind-key b split-window -v -c "#{pane_current_path}" # Leader Key (using C-s instead of the default C-b) set -g prefix C-s bind-key C-s last-window # Start index at 1 set -g base-index 1 set -g pane-base-index 1 set-window-option -g pane-base-index 1 set-option -g renumber-windows on # Allows for faster key repetition set -s escape-time 50 # Rather than constraining window size to the maximum size of any client # connected to the *session*, constrain window size to the maximum size of any # client connected to *that window*. Much more reasonable. setw -g aggressive-resize on # hjkl pane traversal bind-key h select-pane -L bind-key j select-pane -D bind-key k select-pane -U bind-key l select-pane -R bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'" # auto window rename set-window-option -g automatic-rename # Vi copypaste mode set-window-option -g mode-keys vi bind g copy-mode bind -T copy-mode-vi v send -X begin-selection bind-key -T copy-mode-vi y send -X copy-selection-and-cancel bind P paste-buffer # Mouse support set -g mouse on # VIM Options set-option -g focus-events on set-option -sa terminal-features ',foot:RGB' # Remove confirm prompt when closing pane bind-key x kill-pane # Load TMUX Plugins set -g @catppuccin_window_left_separator "" set -g @catppuccin_window_right_separator " " set -g @catppuccin_window_middle_separator " █" set -g @catppuccin_window_number_position "right" set -g @catppuccin_window_default_fill "number" set -g @catppuccin_window_default_text "#W" set -g @catppuccin_window_current_fill "number" set -g @catppuccin_window_current_text "#W" set -g @catppuccin_status_modules_right "directory user host session cpu battery" set -g @catppuccin_status_left_separator " " set -g @catppuccin_status_right_separator "" set -g @catppuccin_status_fill "icon" set -g @catppuccin_status_connect_separator "no" set -g @catppuccin_directory_text "#{pane_current_path}" run '~/.config/tmux/plugins/theme/theme.tmux' run-shell '~/.config/tmux/plugins/tmux-cpu/cpu.tmux' run-shell '~/.config/tmux/plugins/tmux-battery/battery.tmux'