]> git.rmz.io Git - dotfiles.git/blob - tmux/tmux.conf
tmux: enable true color for kitty terminals
[dotfiles.git] / tmux / tmux.conf
1 set -g default-terminal "tmux-256color"
2 # enable true color for kitty
3 set -ag terminal-overrides ",xterm-kitty:Tc"
4 set -g set-titles on
5
6 set -g mode-keys vi
7
8 bind-key Escape copy-mode
9 unbind-key p
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
15
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"
19
20 # easy-to-remember split pane commands
21 bind-key | split-window -h
22 bind-key - split-window -v
23 unbind-key '"'
24 unbind-key %
25
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
31
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 :+
35
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
41
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'