71 lines
2.2 KiB
Plaintext
71 lines
2.2 KiB
Plaintext
# Change the prefix from 'C-b' to 'C-Space'
|
|
unbind C-b
|
|
set-option -g prefix C-Space
|
|
bind-key C-Space send-prefix
|
|
|
|
set-option -g set-clipboard on
|
|
|
|
#set -g default-terminal "tmux-256color"
|
|
#set -as terminal-features ",*:RGB"
|
|
set-option -a terminal-features 'xterm-256color:RGB'
|
|
set-option -sg escape-time 10
|
|
set-option -g repeat-time 0
|
|
set-option -g focus-events on
|
|
|
|
# Set the base index for windows and panes to 1 instead of 0
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
|
|
# Increase scrollback buffer size
|
|
set -g history-limit 10000
|
|
|
|
# Customize the status bar for Catppuccin Latte
|
|
set -g status-style bg=default,fg='#4c4f69' # Catppuccin Latte text color
|
|
set -g status-left '#[fg=#1e66f5,bold][#S] ' # Catppuccin Latte blue for session
|
|
set -g status-left-length 50
|
|
set -g status-right ''
|
|
|
|
# Optional: Style the window tabs to match
|
|
set -g window-status-current-style 'fg=#4c4f69,bold' # Active window - dark text, bold
|
|
set -g window-status-style 'fg=#6c6f85' # Inactive windows - lighter text
|
|
set -g window-status-separator ' | ' # Clean separator
|
|
|
|
# Optional: Style the borders to match (if you use pane borders)
|
|
set -g pane-border-style 'fg=#ccd0da' # Light border for inactive panes
|
|
set -g pane-active-border-style 'fg=#1e66f5' # Blue border for active pane
|
|
|
|
set -g status-left-length 20
|
|
set -g status-right-length 20
|
|
set -g pane-border-format ""
|
|
# Message text
|
|
set -g message-style bg=default,fg=cyan
|
|
|
|
# Enable mouse support
|
|
setw -g mouse on
|
|
|
|
# Fix scroll. Use N3 instead of N1 to make it quicker
|
|
bind-key -T copy-mode-vi WheelUpPane send -N1 -X scroll-up
|
|
bind-key -T copy-mode-vi WheelDownPane send -N1 -X scroll-down
|
|
|
|
# Update terminal titles
|
|
set-option -g set-titles on
|
|
set-option -g set-titles-string "#S"
|
|
|
|
# Use vim keybindings in copy mode
|
|
setw -g mode-keys vi
|
|
|
|
# Setup 'v' to begin selection as in Vim
|
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
|
|
|
# Pane navigation using vim-like keys
|
|
bind -r k select-pane -U
|
|
bind -r j select-pane -D
|
|
bind -r h select-pane -L
|
|
bind -r l select-pane -R
|
|
|
|
# Automatically renumber windows when one is closed
|
|
set -g renumber-windows on
|
|
|
|
# Reload tmux config
|
|
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|