-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_tmux.conf
191 lines (139 loc) · 5.43 KB
/
dot_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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# TMUX CONFIGURATION
# Alt-Space is more sane
#set -g prefix C-Space
#unbind C-b
#bind C-Space send-prefix
#bind-key C-a last-window
# hjkl pane traversal
#bind h select-pane -L
#bind j select-pane -D
#bind k select-pane -U
#bind l select-pane -R
# pane switching
#bind -n M-Left select-pane -L
#bind -n M-Right select-pane -R
#bind -n M-Up select-pane -U
#bind -n M-Down select-pane -D
# resize panes
#bind < resize-pane -L 10
#bind > resize-pane -R 10
#bind - resize-pane -D 10
#bind + resize-pane -U 10
#use <prefix> s for horizontal split
#bind s split-window -v
#use <prefix> v for vertical split
#bind v split-window -h
# use <prefix> a for resizing
#bind a resize-window -A
# easier and faster switching between next/prev window
#bind C-p previous-window
#bind C-n next-window
# Reload tmux config
bind r source-file ~/.tmux.conf
#setw -g mode-keys vi
#set -g status-keys emacs
#bind-key -T copy-mode-vi v send -X begin-selection
#bind-key -T copy-mode-vi V send -X select-line
#bind-key -T copy-mode-vi y send -X copy-selection
#unbind-key -T copy-mode-vi v
#bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle
# -- list choice (tmux < 2.4) --------------------------------------------------
# vi-choice is gone in tmux >= 2.4
#run -b 'tmux bind -t vi-choice h tree-collapse 2> /dev/null || true'
#run -b 'tmux bind -t vi-choice l tree-expand 2> /dev/null || true'
#run -b 'tmux bind -t vi-choice K start-of-list 2> /dev/null || true'
#run -b 'tmux bind -t vi-choice J end-of-list 2> /dev/null || true'
#run -b 'tmux bind -t vi-choice H tree-collapse-all 2> /dev/null || true'
#run -b 'tmux bind -t vi-choice L tree-expand-all 2> /dev/null || true'
#run -b 'tmux bind -t vi-choice Escape cancel 2> /dev/null || true'
# -- edit mode (tmux < 2.4) ----------------------------------------------------
# vi-edit is gone in tmux >= 2.4
#run -b 'tmux bind -ct vi-edit H start-of-line 2> /dev/null || true'
#run -b 'tmux bind -ct vi-edit L end-of-line 2> /dev/null || true'
#run -b 'tmux bind -ct vi-edit q cancel 2> /dev/null || true'
#run -b 'tmux bind -ct vi-edit Escape cancel 2> /dev/null || true'
# -- copy mode -----------------------------------------------------------------
bind Enter copy-mode # enter copy mode
#run -b 'tmux bind -t vi-copy v begin-selection 2> /dev/null || true'
#run -b 'tmux bind -T copy-mode-vi v send -X begin-selection 2> /dev/null || true'
#run -b 'tmux bind -t vi-copy C-v rectangle-toggle 2> /dev/null || true'
#run -b 'tmux bind -T copy-mode-vi C-v send -X rectangle-toggle 2> /dev/null || true'
#run -b 'tmux bind -t vi-copy y copy-selection 2> /dev/null || true'
#run -b 'tmux bind -T copy-mode-vi y send -X copy-selection-and-cancel 2> /dev/null || true'
#run -b 'tmux bind -t vi-copy Escape cancel 2> /dev/null || true'
#run -b 'tmux bind -T copy-mode-vi Escape send -X cancel 2> /dev/null || true'
#run -b 'tmux bind -t vi-copy H start-of-line 2> /dev/null || true'
#run -b 'tmux bind -T copy-mode-vi H send -X start-of-line 2> /dev/null || true'
#run -b 'tmux bind -t vi-copy L end-of-line 2> /dev/null || true'
#run -b 'tmux bind -T copy-mode-vi L send -X end-of-line 2> /dev/null || true'
#set -g prefix2 C-s
# Mouse enable
set -g -q mouse on
# Set agressive mode
setw -g aggressive-resize on
#### COLOUR (Solarized dark)
# improve colors
set -g default-terminal "xterm-256color"
set -ag terminal-overrides ",alacritty:RGB"
tmux_conf_theme_highlight_focused_pane=true
# default statusbar colors
set -g status-style "bg=#2b2b2b,fg=#6c6c6c"
# default window title colors
setw -g window-status-style "fg=#6c6c6c,bg=default"
# active window title colors
setw -g window-status-current-style "fg=#b58900,bg=default"
# set inactive/active window styles
set -g window-style "fg=#839496,bg=default"
set -g window-active-style "fg=#839496,bg=#002b36"
# pane border
set -g pane-border-style "fg=#6c6c6c,bg=default"
set -g pane-active-border-style "fg=#b58900,bg=default"
# message text
set -g message-style "bg=#262626,fg=#d75f00"
# pane number display
set -g display-panes-active-colour "#0087ff"
set -g display-panes-colour "#d75f00"
# clock
setw -g clock-mode-colour "#b58900"
# highlight mode
setw -g mode-style "fg=#fdf6e3,bg=#6c71c4 bold"
# bell
setw -g window-status-bell-style "fg=#262626,bg=#d70000"
#set-window-option -g window-status-current-attr bright
# default statusbar colors
set -g status-interval 1
set -g status-justify centre
set -g status-keys vi
set -g status-position bottom
set -g status-left-length 24
set -g status-left-style default
set -g status-left "#[fg=green]#H"
set -g status-right-length 240
set -g status-right '#{net_speed} #[fg=white,bg=default]%a %H:%M:%S %p#[default] #[fg=blue]%Y-%m-%d'
set -g @net_speed_format "↓%8s • ↑%8s"
# tmux time
set -g display-panes-time 2000
set -g base-index 1
set-window-option -g pane-base-index 1
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# Allows for faster key repetition
set -s escape-time 0
# Disable renaming
set -g allow-rename off
# Set title of the window to the session
set-option -g set-titles on
set-option -g set-titles-string '#S'
# increase scrollback lines
set -g history-limit 100000
# don't suspend-client
unbind-key C-z
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# tmux plugin manager
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-net-speed'
set -g @plugin 'christoomey/vim-tmux-navigator'
run '~/.tmux/plugins/tpm/tpm'