| 1 | # True color settings |
| 2 | set -g default-terminal "$TERM" |
| 3 | set -ag terminal-overrides ",$TERM:Tc" |
| 4 | set -s escape-time 0 |
| 5 | |
| 6 | set -g prefix2 C-s |
| 7 | unbind C-b |
| 8 | set -g prefix2 C-Space |
| 9 | |
| 10 | set -g status-style 'bg=#16161E fg=#ffffff' |
| 11 | set-option -g history-limit 5000 |
| 12 | |
| 13 | # Numbering Windows and panes |
| 14 | set -g base-index 1 |
| 15 | setw -g pane-base-index 1 |
| 16 | set -g renumber-windows on |
| 17 | |
| 18 | bind r source-file ~/.config/tmux/tmux.conf; |
| 19 | |
| 20 | # vim keys |
| 21 | # setw -g mode-keys vi |
| 22 | set-window-option -g mode-keys vi |
| 23 | bind -T copy-mode-vi v send-keys -X begin-selection |
| 24 | bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'wl-copy' |
| 25 | |
| 26 | # # Remapping movement keys |
| 27 | bind h select-pane -L # Move focus to pane on the left |
| 28 | bind j select-pane -D # Move focus to pane above the current one |
| 29 | bind k select-pane -U # Move focus to pane below the current one |
| 30 | bind l select-pane -R # Move focus to pane on the right |
| 31 | bind Space last-window # Toggle between previously focused window |
| 32 | |
| 33 | bind c new-window -c "#{pane_current_path}" # Keep current path |
| 34 | |
| 35 | bind-key -r i run-shell "tmux neww tms" |
| 36 | |
| 37 | # Resizing panes (notes that is using the uppercase here and resize by 5 chars) |
| 38 | bind -r C-h resize-pane -L 5 |
| 39 | bind -r C-j resize-pane -D 5 |
| 40 | bind -r C-k resize-pane -U 5 |
| 41 | bind -r C-l resize-pane -R 5 |
| 42 | |
| 43 | |
| 44 | |
| 45 | # TPM |
| 46 | ## Setup: git clone https://github.com/tmux-plugins/tpm plugins/tpm |
| 47 | set -g @plugin 'tmux-plugins/tpm' |
| 48 | set -g @plugin 'fabioluciano/tmux-tokyo-night' |
| 49 | |
| 50 | # Configure the catppuccin plugin |
| 51 | # set -g @catppuccin_flavor "mocha" |
| 52 | # set -g @catppuccin_window_status_style "rounded" |
| 53 | # set -g @plugin 'catppuccin/tmux' |
| 54 | |
| 55 | run '~/.config/tmux/plugins/tpm/tpm' |