1 set -g default-terminal "tmux-256color"
2 # enable true color for kitty
3 set -ag terminal-overrides ",xterm-kitty:Tc"
8 bind-key Escape copy-mode
10 bind-key p paste-buffer
11 bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
12 bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
13 bind-key -T copy-mode-vi 'Space' send-keys -X halfpage-down
14 bind-key -T copy-mode-vi 'Bspace' send-keys -X halfpage-up
16 # extra commands for interacting with the ICCCM clipboard
17 bind-key C-c run "tmux save-buffer - | xclip -i -sel clipboard"
18 bind-key C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
20 # easy-to-remember split pane commands
21 bind-key | split-window -h
22 bind-key - split-window -v
26 # moving between panes with vim movement keys
27 bind-key h select-pane -L
28 bind-key j select-pane -D
29 bind-key k select-pane -U
30 bind-key l select-pane -R
32 # moving between windows with vim movement keys
33 bind-key -r C-h select-window -t :-
34 bind-key -r C-l select-window -t :+
36 # resize panes with vim movement keys
37 bind-key -r H resize-pane -L 5
38 bind-key -r J resize-pane -D 5
39 bind-key -r K resize-pane -U 5
40 bind-key -r L resize-pane -R 5
42 #TODO use THEME env somehow, see FORMATS in tmux(1)
43 set -g @plugin "arcticicestudio/nord-tmux"
44 run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm'