| 1 | |
| 2 | ##### tmux.conf - tuned for Foot (Wayland) + preserve transparency + truecolor ##### |
| 3 | |
| 4 | # responsiveness |
| 5 | set -s escape-time 0 |
| 6 | set-option -g history-limit 5000 |
| 7 | |
| 8 | # prefix |
| 9 | unbind C-b |
| 10 | set -g prefix2 C-s |
| 11 | set -g prefix C-Space |
| 12 | |
| 13 | # numbering |
| 14 | set -g base-index 1 |
| 15 | setw -g pane-base-index 1 |
| 16 | set -g renumber-windows on |
| 17 | |
| 18 | # reload quickly |
| 19 | bind r source-file ~/.config/tmux/tmux.conf |
| 20 | |
| 21 | ##### transparency & styles ##### |
| 22 | # let the terminal compositor handle the background (keeps transparency) |
| 23 | set -g window-style 'bg=default' |
| 24 | set -g window-active-style 'bg=default' |
| 25 | set -g status-style 'bg=default' |
| 26 | |
| 27 | # default-terminal: use a screen-compatible value to avoid missing terminfo, |
| 28 | # but tell tmux to pass 24-bit color capability for common terminal names |
| 29 | set -g default-terminal "screen-256color" |
| 30 | set -ga terminal-overrides ",screen-256color:Tc,foot:Tc,xterm-256color:Tc,alacritty:Tc" |
| 31 | |
| 32 | ##### vi mode / copy ##### |
| 33 | set-window-option -g mode-keys vi |
| 34 | bind -T copy-mode-vi v send-keys -X begin-selection |
| 35 | bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'wl-copy' |
| 36 | |
| 37 | ##### keys ##### |
| 38 | bind h select-pane -L |
| 39 | bind j select-pane -D |
| 40 | bind k select-pane -U |
| 41 | bind l select-pane -R |
| 42 | bind Space last-window |
| 43 | bind c new-window -c "#{pane_current_path}" |
| 44 | bind-key -r i run-shell "tmux neww tms" |
| 45 | bind -r C-h resize-pane -L 5 |
| 46 | bind -r C-j resize-pane -D 5 |
| 47 | bind -r C-k resize-pane -U 5 |
| 48 | bind -r C-l resize-pane -R 5 |
| 49 | |
| 50 | ##### plugins (temporarily disable if debugging) ##### |
| 51 | set -g @plugin 'tmux-plugins/tpm' |
| 52 | # Tokyo Night can override bg — comment out while debugging |
| 53 | set -g @plugin 'fabioluciano/tmux-tokyo-night' |
| 54 | run '~/.config/tmux/plugins/tpm/tpm' |
| 55 | |