-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
252 lines (215 loc) · 7.71 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
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
#SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB
#--------- ------- ---- ------- ----------- ---------- ----------- -----------
#base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21
#base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26
#base01 #586e75 10/7 brgreen 240 #585858 45 -07 -07 88 110 117 194 25 46
#base00 #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195 23 51
#base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59
#base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63
#base2 #eee8d5 7/7 white 254 #e4e4e4 92 -00 10 238 232 213 44 11 93
#base3 #fdf6e3 15/7 brwhite 230 #ffffd7 97 00 10 253 246 227 44 10 99
#yellow #b58900 3/3 yellow 136 #af8700 60 10 65 181 137 0 45 100 71
#orange #cb4b16 9/3 brred 166 #d75f00 50 50 55 203 75 22 18 89 80
#red #dc322f 1/1 red 160 #d70000 50 65 45 220 50 47 1 79 86
#magenta #d33682 5/5 magenta 125 #af005f 50 65 -05 211 54 130 331 74 83
#violet #6c71c4 13/5 brmagenta 61 #5f5faf 50 15 -45 108 113 196 237 45 77
#blue #268bd2 4/4 blue 33 #0087ff 55 -10 -45 38 139 210 205 82 82
#cyan #2aa198 6/6 cyan 37 #00afaf 60 -35 -05 42 161 152 175 74 63
#green #859900 2/2 green 64 #5f8700 60 -20 65 133 153 0 68 100 60
####
#
# General Options
#
########
# Set the maximum number of lines held in window history. This setting applies
# only to new windows - existing window histories are not resized and retain
# the limit at the point they were created.
set -g history-limit 5000
# Show or hide the status line.
set -g status on
# Control automatic window renaming. When this setting is enabled, tmux will
# rename the window automatically using the format specified by
# automatic-rename-format.
setw -g automatic-rename on
# Set window modes style
set -g mode-style fg=colour244,bg=colour235
# Use vi key bindings in copy and choice modes
setw -g mode-keys vi
# Instructs tmux to expect UTF-8 sequences to appear in this window.
#setw -g utf8 on
# Set the default terminal for new windows created in this session - the
# default value of the TERM environment variable. For tmux to work
# correctly, this must be set to ‘screen’ or a derivative of it.
set -g default-terminal "screen-256color"
#### end General Options ####
####
#
# display-panes-*
#
########
# Set the colour used by the display-panes command to show the indicator for
# the active pane. Command is ctrl+b q
set -g display-panes-active-colour colour240 #base01/brgreen
# Set the colour used by the display-panes command to show the indicators
# for inactive panes.
set -g display-panes-colour colour64 #green
#### end display-panes-* ####
####
#
# message-*
#
########
# Set status line message style
set -g message-style fg=colour244,bg=colour235,bright
#### end message-* ####
####
#
# pane-*
#
########
# Set the pane border style for the currently active pane.
set -g pane-active-border-style fg=colour64,bg=colour234
# Set the pane border style for paneas aside from the active pane
set -g pane-border-style fg=colour235,bg=colour235
#### end pain-* ####
####
#
# status-*
#
########
set -g status-style bg=colour234,fg=colour244
# Update the status bar every interval seconds
set -g status-interval 15
# Set the position of the window list component of the status line
set -g status-justify centre
# Set the position of the status line
set -g status-position top
# Use vi or emacs-style key bindings in the status line, for example at the
# command prompt
set -g status-keys vi
# Display string (by default the session name) to the left of the status bar
set -g status-left "[#S]"
# Set the maximum length of the left component of the status bar
set -g status-left-length 23
# Set the style of the left part of the status line
set -g status-left-style bg=colour235,fg=colour64,bright
# Display string to the right of the status bar
set -g status-right "#[fg=colour33,bright,bg=colour234][#{battery_percentage}] #(${HOME}/.pms/plugins/tmux/scripts/right.sh)"
# Set the maximum length of the right component of the status bar. The default is 40
set -g status-right-length 90
# Set the style of the right part of the status line
set -g status-right-style bg=colour235,fg=colour33,bright
# Instruct tmux to treat top-bit-set characters in the status-left and status
# right strings as UTF-8
#set -g status-utf8 on
#### end status-* ####
####
#
# visual-*
#
########
# If on, display a status line message when activity occurs in a window for
# which the monitor-activity window option is enabled
set -g visual-activity on
# If this option is on, a message is shown on a bell instead of it being
# passed through to the terminal
set -g visual-bell on
# If monitor-silence is enabled, prints a message after the interval has
# expired on a given window.
set -g visual-silence off
#### end visual-* ####
####
#
# clock-mode-*
#
########
# Set clock colour
setw -g clock-mode-colour colour64 #green
# Set clock hour format
setw -g clock-mode-style 12
#### end clock-mode-* ####
####
#
# monitor-*
#
########
# Monitor for activity in the window. Windows with activity are highlighted
# in the status line.
setw -g monitor-activity on
# Monitor for silence (no activity) in the window within interval seconds. An
# interval of zero disables the monitoring.
setw -g monitor-silence 0
#### end monitor-* ####
####
#
# window-status-*
#
########
setw -g window-status-activity-style bg=colour234,fg=colour244
setw -g window-status-style bg=colour234,fg=colour244
setw -g window-status-format "[#I]#W#F"
setw -g window-status-current-format "#[fg=colour160]["
setw -ga window-status-current-format "#[fg=colour244]#W#F"
setw -ga window-status-current-format "#[fg=colour160]]"
#setw -g window-status-current-attr bright
#setw -g window-status-current-bg colour235 #base02
#setw -g window-status-current-fg colour254 #base2
setw -g window-status-separator " "
#### end window-status-* ####
####
#
# rebind a few keys
#
########
# ctrl+b r will reload this file
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Bind vim keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
#### end rebind keys ####
# No mouse no..
setw -g mouse off
# 2.0 to 2.1; These options have been removed and replaced with `mouse`
#setw -g mode-mouse off
#set -g mouse-select-pane off
#set -g mouse-resize-pane off
#set -g mouse-select-window off
####
# @see https://raw.githubusercontent.com/altercation/solarized/master/tmux/tmuxcolors-dark.conf
#### COLOUR (Solarized dark)
# default statusbar colors
#set-option -g status-bg black #base02
#set-option -g status-fg yellow #yellow
#set-option -g status-attr default
## default window title colors
#set-window-option -g window-status-fg brightblue #base0
#set-window-option -g window-status-bg default
##set-window-option -g window-status-attr dim
## active window title colors
#set-window-option -g window-status-current-fg brightred #orange
#set-window-option -g window-status-current-bg default
##set-window-option -g window-status-current-attr bright
## pane border
#set-option -g pane-border-fg black #base02
#set-option -g pane-active-border-fg brightgreen #base01
## message text
#set-option -g message-bg black #base02
#set-option -g message-fg brightred #orange
## pane number display
#set-option -g display-panes-active-colour blue #blue
#set-option -g display-panes-colour brightred #orange
## clock
#set-window-option -g clock-mode-colour green #green
#### END
####
#
# Plugins!
#
# Note: These MUST always stay to the bottom of this config file
#
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-resurrect'
run '~/.tmux/plugins/tpm/tpm'