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