From 8400959159e02455e9ad5aa531ad7e16cdbb5084 Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Tue, 10 Feb 2026 22:33:46 +0100 Subject: [PATCH] chore(config): add tmux config with mouse/clipboard support Co-Authored-By: Claude Opus 4.5 --- dotfiles/tmux.conf | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 dotfiles/tmux.conf diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf new file mode 100644 index 000000000..45769bd98 --- /dev/null +++ b/dotfiles/tmux.conf @@ -0,0 +1,47 @@ +# True color support +set -g default-terminal "tmux-256color" +set -ag terminal-overrides ",xterm-256color:RGB" + +# Status bar at top +set -g status-position top + +# Modern status bar styling +set -g status-style 'bg=#1a1b26 fg=#a9b1d6' +set -g status-left '#[fg=#7aa2f7,bold] #S ' +set -g status-right '#[fg=#565f89]%Y-%m-%d %H:%M ' +set -g status-left-length 40 + +# Window tabs +set -g window-status-current-format '#[fg=#1a1b26,bg=#7aa2f7,bold] #I:#W ' +set -g window-status-format '#[fg=#565f89] #I:#W ' + +# Pane borders +set -g pane-border-style 'fg=#3b4261' +set -g pane-active-border-style 'fg=#7aa2f7' + +# Message styling +set -g message-style 'bg=#1a1b26 fg=#7aa2f7' + +# Mouse support (click, scroll, resize panes) +set -g mouse on + +# Clipboard support (OSC 52 - works with modern terminals) +set -g set-clipboard on + +# Scroll history +set -g history-limit 50000 + +# Copy mode with vi keys +setw -g mode-keys vi + +# Copy to system clipboard (macOS) +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" + +# Tokyo Night theme plugin +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'janoamaral/tokyo-night-tmux' + +# Initialize TPM (keep at bottom) +run '~/.tmux/plugins/tpm/tpm'