]> git.rmz.io Git - dotfiles.git/blob - tmux/tmux.conf
gnupg: allow preset passphrases fol pam_gnupg
[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 mouse
7 set -g mode-keys vi
8
9 bind-key Escape copy-mode
10 unbind-key p
11 bind-key p paste-buffer
12 bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
13 bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
14 bind-key -T copy-mode-vi 'Space' send-keys -X halfpage-down
15 bind-key -T copy-mode-vi 'Bspace' send-keys -X halfpage-up
16
17 # extra commands for interacting with the ICCCM clipboard
18 bind-key C-c run "tmux save-buffer - | xclip -i -sel clipboard"
19 bind-key C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
20
21 # easy-to-remember split pane commands
22 bind-key | split-window -h
23 bind-key - split-window -v
24 unbind-key '"'
25 unbind-key %
26
27 # moving between panes with vim movement keys
28 bind-key h select-pane -L
29 bind-key j select-pane -D
30 bind-key k select-pane -U
31 bind-key l select-pane -R
32
33 # moving between windows with vim movement keys
34 bind-key -r C-h select-window -t :-
35 bind-key -r C-l select-window -t :+
36
37 # resize panes with vim movement keys
38 bind-key -r H resize-pane -L 5
39 bind-key -r J resize-pane -D 5
40 bind-key -r K resize-pane -U 5
41 bind-key -r L resize-pane -R 5
42
43 #TODO use THEME env somehow, see FORMATS in tmux(1)
44 set -g @plugin "arcticicestudio/nord-tmux"
45 run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm'