dotfiles/config/tmux/tmux.conf
2025-04-07 14:42:22 +01:00

76 lines
1.7 KiB
Bash

set -g default-terminal "xterm-256color"
set-option -sa terminal-overrides ",xterm-256color:RGB"
set-option -sg escape-time 10
set -g base-index 1
setw -g pane-base-index 1
set -s escape-time 0
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
unbind r
bind r source-file ~/.tmux.conf
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
unbind c
bind c new-window -c "#{pane_current_path}"
unbind b
bind b display-popup -w 80% -h 80% -E "tmux new-session -A -s FloatingSession-$(tmux display-message -p '#S')"
set-option -g default-shell /bin/fish
# -------------------------------
# Copy and Paste Options
# -------------------------------
set -g mouse on
set-option -g mouse on
set -g mode-keys vi
set-option -s set-clipboard off
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X rectangle-toggle
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel wl-copy
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel wl-copy
# -------------------------------
set -g @plugin 'tmux-plugins/tpm'
# Tmux Plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
run '~/.tmux/plugins/tpm/tpm'
# Pick a softer palette.
set -g @catppuccin_flavor 'mocha'
run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux
# Make the status line more pleasant.
set -g status-left ""
set -g status-right '#[fg=#{@thm_crust},bg=#{@thm_teal}] session: #S '
# Ensure that everything on the right side of the status line
# is included.
set -g status-right-length 100