-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
130 lines (108 loc) · 6.72 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
set-window-option -g xterm-keys on
set -sg escape-time 50
set-option -g history-limit 10000
set-option -g renumber-windows on
setw -g mode-keys emacs
setw -g status-keys emacs
unbind-key -a -T copy-mode
unbind-key -a -T prefix
unbind-key -a -T root
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
set -g monitor-activity off
set -g bell-action none
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'laktak/extrakto'
set -g @extrakto_clip_tool 'true'
set -g prefix C-b
set -g prefix2 C-Space
bind-key -T copy-mode Space send-keys -X begin-selection
bind-key -T copy-mode / command-prompt -i -I "#{pane_search_string}" -p "(search up)" "send -X search-backward-incremental \"%%%\""
bind-key -T copy-mode C-c send-keys -X copy-selection-and-cancel
bind-key -T copy-mode Escape send-keys -X cancel
bind-key -T copy-mode p send-keys -X search-reverse
bind-key -T copy-mode r send-keys -X rectangle-toggle
bind-key -T copy-mode g command-prompt -p "(goto line)" "send -X goto-line \"%%%\""
bind-key -T copy-mode n send-keys -X search-again
bind-key -T copy-mode Home send-keys -X start-of-line
bind-key -T copy-mode End send-keys -X end-of-line
bind-key -T copy-mode NPage send-keys -X page-down
bind-key -T copy-mode PPage send-keys -X page-up
bind-key -T copy-mode Up send-keys -X cursor-up
bind-key -T copy-mode Down send-keys -X cursor-down
bind-key -T copy-mode Left send-keys -X cursor-left
bind-key -T copy-mode Right send-keys -X cursor-right
bind-key -T copy-mode C-Left send-keys -X previous-word
bind-key -T copy-mode C-Right send-keys -X next-word-end
bind-key -T copy-mode C-Up send-keys -X scroll-up
bind-key -T copy-mode C-Down send-keys -X scroll-down
bind-key -T prefix C-b send-prefix
bind-key -T prefix s swap-pane -U
bind-key -T prefix b break-pane
bind-key -T prefix h split-window -c "#{pane_current_path}"
bind-key -T prefix r rotate-window
bind-key -T prefix l list-buffers
bind-key -T prefix v split-window -h -c "#{pane_current_path}"
bind-key -T prefix k confirm-before -p "kill pane #W? (y/n)" kill-pane
bind-key -T prefix n command-prompt -I "#W" "rename-window -- '%%'"
bind-key -T prefix m command-prompt "move-window -t '%%'"
bind-key -T prefix d split-window -h -p 28 -c "#{pane_current_path}"
bind-key -T prefix 0 select-window -t :=0
bind-key -T prefix 1 select-window -t :=1
bind-key -T prefix 2 select-window -t :=2
bind-key -T prefix 3 select-window -t :=3
bind-key -T prefix 4 select-window -t :=4
bind-key -T prefix 5 select-window -t :=5
bind-key -T prefix 6 select-window -t :=6
bind-key -T prefix 7 select-window -t :=7
bind-key -T prefix 8 select-window -t :=8
bind-key -T prefix 9 select-window -t :=9
bind-key -T prefix c command-prompt
bind-key -T prefix I run-shell /root/.tmux/plugins/tpm/bindings/install_plugins
bind-key -T prefix U run-shell /root/.tmux/plugins/tpm/bindings/update_plugins
bind-key -T prefix Space copy-mode
bind-key -T prefix C-v paste-buffer
bind-key -T prefix w new-window -c "#{pane_current_path}"
bind-key -T prefix x confirm-before -p "kill-window #P? (y/n)" kill-window
bind-key -r -T prefix Up select-pane -U
bind-key -r -T prefix Down select-pane -D
bind-key -r -T prefix Left select-pane -L
bind-key -r -T prefix Right select-pane -R
bind-key -T prefix C run-shell /root/.tmux/plugins/tpm/bindings/clean_plugins
bind-key -r -T prefix M-Up resize-pane -U
bind-key -r -T prefix M-Down resize-pane -D
bind-key -r -T prefix M-Left resize-pane -L
bind-key -r -T prefix M-Right resize-pane -R
bind-key -r -T prefix C-Up resize-pane -U 5
bind-key -r -T prefix C-Down resize-pane -D 5
bind-key -r -T prefix C-Left resize-pane -L 5
bind-key -r -T prefix C-Right resize-pane -R 5
unbind-key -a -T copy-mode-vi
# TokyoNight colors for Tmux
set -g mode-style "fg=#7aa2f7,bg=#3b4261"
set -g message-style "fg=#7aa2f7,bg=#3b4261"
set -g message-command-style "fg=#7aa2f7,bg=#3b4261"
set -g pane-border-style "fg=#3b4261"
set -g pane-active-border-style "fg=#7aa2f7"
set -g status "on"
set -g status-justify "left"
set -g status-style "fg=#7aa2f7,bg=#1f2335"
set -g status-left-length "100"
set -g status-right-length "100"
set -g status-left-style NONE
set -g status-right-style NONE
set -g status-left "#[fg=#1d202f,bg=#7aa2f7,bold] #S #[fg=#7aa2f7,bg=#1f2335,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#1f2335] #{prefix_highlight}#[fg=#3b4261,bg=#1f2335,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] #(gitmux -cfg $HOME/.config/.gitmux.conf '#{pane_current_path}')#[fg=#7aa2f7,bg=#3b4261] %a %Y-%m-%d #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#1d202f,bg=#7aa2f7,bold] %H:%M "
setw -g window-status-activity-style "underscore,fg=#a9b1d6,bg=#1f2335"
setw -g window-status-separator ""
setw -g window-status-style "NONE,fg=#a9b1d6,bg=#1f2335"
setw -g window-status-format "#[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]#[default] #I #W #F #[fg=#1f2335,bg=#1f2335,nobold,nounderscore,noitalics]"
setw -g window-status-current-format "#[fg=#1f2335,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261,bold] #I #W #F #[fg=#3b4261,bg=#1f2335,nobold,nounderscore,noitalics]"
# tmux-plugins/tmux-prefix-highlight support
set -g @prefix_highlight_output_prefix "#[fg=#e0af68]#[bg=#1f2335]#[fg=#1f2335]#[bg=#e0af68]"
set -g @prefix_highlight_output_suffix ""
# endof Tokyonight colors
set -g status-interval 2
set -as terminal-features ",*:RGB"
run '~/.tmux/plugins/tpm/tpm'