Krolyxon
Commit f1ee81b

Branches

Refs →

dotfiles-x11.configtmuxtmux.conf

47 lines · 1.5 KB · nginx

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