diff options
Diffstat (limited to 'dot_tmux.conf.local')
-rw-r--r-- | dot_tmux.conf.local | 461 |
1 files changed, 461 insertions, 0 deletions
diff --git a/dot_tmux.conf.local b/dot_tmux.conf.local new file mode 100644 index 0000000..9d659ae --- /dev/null +++ b/dot_tmux.conf.local | |||
@@ -0,0 +1,461 @@ | |||
1 | # : << EOF | ||
2 | # https://github.com/gpakosz/.tmux | ||
3 | # (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | ||
4 | # without any warranty. | ||
5 | # Copyright 2012— Gregory Pakosz (@gpakosz). | ||
6 | |||
7 | |||
8 | # -- windows & pane creation --------------------------------------------------- | ||
9 | |||
10 | # new window retains current path, possible values are: | ||
11 | # - true | ||
12 | # - false (default) | ||
13 | # - disabled (do not modify new-window bindings) | ||
14 | tmux_conf_new_window_retain_current_path=false | ||
15 | |||
16 | # new pane retains current path, possible values are: | ||
17 | # - true (default) | ||
18 | # - false | ||
19 | # - disabled (do not modify split-window bindings) | ||
20 | tmux_conf_new_pane_retain_current_path=true | ||
21 | |||
22 | # new pane tries to reconnect ssh sessions, possible values are: | ||
23 | # - true | ||
24 | # - false (default) | ||
25 | # - disabled (do not modify split-window bindings) | ||
26 | tmux_conf_new_pane_reconnect_ssh=false | ||
27 | |||
28 | # prompt for session name when creating a new session, possible values are: | ||
29 | # - true | ||
30 | # - false (default) | ||
31 | # - disabled (do not modify new-session bindings) | ||
32 | tmux_conf_new_session_prompt=false | ||
33 | |||
34 | |||
35 | # -- display ------------------------------------------------------------------- | ||
36 | |||
37 | # RGB 24-bit colour support, possible values are: | ||
38 | # - true | ||
39 | # - false | ||
40 | # - auto (default) | ||
41 | # | ||
42 | # automatic detection relies on the COLORTERM environment variable being defined | ||
43 | # to 'truecolor' or '24bit' or '$ tput colors' answering '16777216' | ||
44 | # see https://github.com/termstandard/colors | ||
45 | tmux_conf_24b_colour=auto | ||
46 | |||
47 | |||
48 | # -- theming ------------------------------------------------------------------- | ||
49 | |||
50 | # enable or disable theming: | ||
51 | # - enabled (default) | ||
52 | # - disabled | ||
53 | # when disabled, all tmux_conf_theme_xxx variables are ignored except: | ||
54 | # - tmux_conf_theme_pairing | ||
55 | # - tmux_conf_theme_prefix | ||
56 | # - tmux_conf_theme_mouse | ||
57 | # - tmux_conf_theme_root | ||
58 | # - tmux_conf_theme_synchronized | ||
59 | tmux_conf_theme=enabled | ||
60 | |||
61 | # default theme | ||
62 | tmux_conf_theme_colour_1="#080808" # dark gray | ||
63 | tmux_conf_theme_colour_2="#303030" # gray | ||
64 | tmux_conf_theme_colour_3="#8a8a8a" # light gray | ||
65 | tmux_conf_theme_colour_4="#00afff" # light blue | ||
66 | tmux_conf_theme_colour_5="#ffff00" # yellow | ||
67 | tmux_conf_theme_colour_6="#080808" # dark gray | ||
68 | tmux_conf_theme_colour_7="#e4e4e4" # white | ||
69 | tmux_conf_theme_colour_8="#080808" # dark gray | ||
70 | tmux_conf_theme_colour_9="#ffff00" # yellow | ||
71 | tmux_conf_theme_colour_10="#ff00af" # pink | ||
72 | tmux_conf_theme_colour_11="#5fff00" # green | ||
73 | tmux_conf_theme_colour_12="#8a8a8a" # light gray | ||
74 | tmux_conf_theme_colour_13="#e4e4e4" # white | ||
75 | tmux_conf_theme_colour_14="#080808" # dark gray | ||
76 | tmux_conf_theme_colour_15="#080808" # dark gray | ||
77 | tmux_conf_theme_colour_16="#d70000" # red | ||
78 | tmux_conf_theme_colour_17="#e4e4e4" # white | ||
79 | |||
80 | # default theme (ansi) | ||
81 | #tmux_conf_theme_colour_1="colour0" | ||
82 | #tmux_conf_theme_colour_2="colour8" | ||
83 | #tmux_conf_theme_colour_3="colour8" | ||
84 | #tmux_conf_theme_colour_4="colour14" | ||
85 | #tmux_conf_theme_colour_5="colour11" | ||
86 | #tmux_conf_theme_colour_6="colour0" | ||
87 | #tmux_conf_theme_colour_7="colour15" | ||
88 | #tmux_conf_theme_colour_8="colour0" | ||
89 | #tmux_conf_theme_colour_9="colour11" | ||
90 | #tmux_conf_theme_colour_10="colour13" | ||
91 | #tmux_conf_theme_colour_11="colour10" | ||
92 | #tmux_conf_theme_colour_12="colour8" | ||
93 | #tmux_conf_theme_colour_13="colour15" | ||
94 | #tmux_conf_theme_colour_14="colour0" | ||
95 | #tmux_conf_theme_colour_15="colour0" | ||
96 | #tmux_conf_theme_colour_16="colour1" | ||
97 | #tmux_conf_theme_colour_17="colour15" | ||
98 | |||
99 | # window style | ||
100 | tmux_conf_theme_window_fg="default" | ||
101 | tmux_conf_theme_window_bg="default" | ||
102 | |||
103 | # highlight focused pane, possible values are: | ||
104 | # - true | ||
105 | # - false (default) | ||
106 | tmux_conf_theme_highlight_focused_pane=false | ||
107 | |||
108 | # focused pane colours: | ||
109 | tmux_conf_theme_focused_pane_bg="$tmux_conf_theme_colour_2" | ||
110 | |||
111 | # pane border style, possible values are: | ||
112 | # - thin (default) | ||
113 | # - fat | ||
114 | tmux_conf_theme_pane_border_style=thin | ||
115 | |||
116 | # pane borders colours: | ||
117 | tmux_conf_theme_pane_border="$tmux_conf_theme_colour_2" | ||
118 | tmux_conf_theme_pane_active_border="$tmux_conf_theme_colour_4" | ||
119 | %if #{>=:#{version},3.2} | ||
120 | tmux_conf_theme_pane_active_border="#{?pane_in_mode,$tmux_conf_theme_colour_9,#{?synchronize-panes,$tmux_conf_theme_colour_16,$tmux_conf_theme_colour_4}}" | ||
121 | %endif | ||
122 | |||
123 | # pane indicator colours (when you hit <prefix> + q) | ||
124 | tmux_conf_theme_pane_indicator="$tmux_conf_theme_colour_4" | ||
125 | tmux_conf_theme_pane_active_indicator="$tmux_conf_theme_colour_4" | ||
126 | |||
127 | # status line style | ||
128 | tmux_conf_theme_message_fg="$tmux_conf_theme_colour_1" | ||
129 | tmux_conf_theme_message_bg="$tmux_conf_theme_colour_5" | ||
130 | tmux_conf_theme_message_attr="bold" | ||
131 | |||
132 | # status line command style (<prefix> : Escape) | ||
133 | tmux_conf_theme_message_command_fg="$tmux_conf_theme_colour_5" | ||
134 | tmux_conf_theme_message_command_bg="$tmux_conf_theme_colour_1" | ||
135 | tmux_conf_theme_message_command_attr="bold" | ||
136 | |||
137 | # window modes style | ||
138 | tmux_conf_theme_mode_fg="$tmux_conf_theme_colour_1" | ||
139 | tmux_conf_theme_mode_bg="$tmux_conf_theme_colour_5" | ||
140 | tmux_conf_theme_mode_attr="bold" | ||
141 | |||
142 | # status line style | ||
143 | tmux_conf_theme_status_fg="$tmux_conf_theme_colour_3" | ||
144 | tmux_conf_theme_status_bg="$tmux_conf_theme_colour_1" | ||
145 | tmux_conf_theme_status_attr="none" | ||
146 | |||
147 | # terminal title | ||
148 | # - built-in variables are: | ||
149 | # - #{circled_window_index} | ||
150 | # - #{circled_session_name} | ||
151 | # - #{hostname} | ||
152 | # - #{hostname_ssh} | ||
153 | # - #{hostname_full} | ||
154 | # - #{hostname_full_ssh} | ||
155 | # - #{username} | ||
156 | # - #{username_ssh} | ||
157 | tmux_conf_theme_terminal_title="#h ❐ #S ● #I #W" | ||
158 | |||
159 | # window status style | ||
160 | # - built-in variables are: | ||
161 | # - #{circled_window_index} | ||
162 | # - #{circled_session_name} | ||
163 | # - #{hostname} | ||
164 | # - #{hostname_ssh} | ||
165 | # - #{hostname_full} | ||
166 | # - #{hostname_full_ssh} | ||
167 | # - #{username} | ||
168 | # - #{username_ssh} | ||
169 | tmux_conf_theme_window_status_fg="$tmux_conf_theme_colour_3" | ||
170 | tmux_conf_theme_window_status_bg="$tmux_conf_theme_colour_1" | ||
171 | tmux_conf_theme_window_status_attr="none" | ||
172 | tmux_conf_theme_window_status_format="#I #W" | ||
173 | #tmux_conf_theme_window_status_format="#{circled_window_index} #W" | ||
174 | #tmux_conf_theme_window_status_format="#I #W#{?window_bell_flag,🔔,}#{?window_zoomed_flag,🔍,}" | ||
175 | |||
176 | # window current status style | ||
177 | # - built-in variables are: | ||
178 | # - #{circled_window_index} | ||
179 | # - #{circled_session_name} | ||
180 | # - #{hostname} | ||
181 | # - #{hostname_ssh} | ||
182 | # - #{hostname_full} | ||
183 | # - #{hostname_full_ssh} | ||
184 | # - #{username} | ||
185 | # - #{username_ssh} | ||
186 | tmux_conf_theme_window_status_current_fg="$tmux_conf_theme_colour_1" | ||
187 | tmux_conf_theme_window_status_current_bg="$tmux_conf_theme_colour_4" | ||
188 | tmux_conf_theme_window_status_current_attr="bold" | ||
189 | tmux_conf_theme_window_status_current_format="#I #W" | ||
190 | #tmux_conf_theme_window_status_current_format="#{circled_window_index} #W" | ||
191 | #tmux_conf_theme_window_status_current_format="#I #W#{?window_zoomed_flag,🔍,}" | ||
192 | |||
193 | # window activity status style | ||
194 | tmux_conf_theme_window_status_activity_fg="default" | ||
195 | tmux_conf_theme_window_status_activity_bg="default" | ||
196 | tmux_conf_theme_window_status_activity_attr="underscore" | ||
197 | |||
198 | # window bell status style | ||
199 | tmux_conf_theme_window_status_bell_fg="$tmux_conf_theme_colour_5" | ||
200 | tmux_conf_theme_window_status_bell_bg="default" | ||
201 | tmux_conf_theme_window_status_bell_attr="blink,bold" | ||
202 | |||
203 | # window last status style | ||
204 | tmux_conf_theme_window_status_last_fg="$tmux_conf_theme_colour_4" | ||
205 | tmux_conf_theme_window_status_last_bg="$tmux_conf_theme_colour_2" | ||
206 | tmux_conf_theme_window_status_last_attr="none" | ||
207 | |||
208 | # status left/right sections separators | ||
209 | tmux_conf_theme_left_separator_main="" | ||
210 | tmux_conf_theme_left_separator_sub="|" | ||
211 | tmux_conf_theme_right_separator_main="" | ||
212 | tmux_conf_theme_right_separator_sub="|" | ||
213 | #tmux_conf_theme_left_separator_main='\uE0B0' # /!\ you don't need to install Powerline | ||
214 | #tmux_conf_theme_left_separator_sub='\uE0B1' # you only need fonts patched with | ||
215 | #tmux_conf_theme_right_separator_main='\uE0B2' # Powerline symbols or the standalone | ||
216 | #tmux_conf_theme_right_separator_sub='\uE0B3' # PowerlineSymbols.otf font, see README.md | ||
217 | |||
218 | # status left/right content: | ||
219 | # - separate main sections with "|" | ||
220 | # - separate subsections with "," | ||
221 | # - built-in variables are: | ||
222 | # - #{battery_bar} | ||
223 | # - #{battery_hbar} | ||
224 | # - #{battery_percentage} | ||
225 | # - #{battery_status} | ||
226 | # - #{battery_vbar} | ||
227 | # - #{circled_session_name} | ||
228 | # - #{hostname_ssh} | ||
229 | # - #{hostname} | ||
230 | # - #{hostname_full} | ||
231 | # - #{hostname_full_ssh} | ||
232 | # - #{loadavg} | ||
233 | # - #{mouse} | ||
234 | # - #{pairing} | ||
235 | # - #{prefix} | ||
236 | # - #{root} | ||
237 | # - #{synchronized} | ||
238 | # - #{uptime_y} | ||
239 | # - #{uptime_d} (modulo 365 when #{uptime_y} is used) | ||
240 | # - #{uptime_h} | ||
241 | # - #{uptime_m} | ||
242 | # - #{uptime_s} | ||
243 | # - #{username} | ||
244 | # - #{username_ssh} | ||
245 | tmux_conf_theme_status_left=" ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} " | ||
246 | tmux_conf_theme_status_right=" #{prefix}#{mouse}#{pairing}#{synchronized}| #{username}#{root} | #{hostname} " | ||
247 | |||
248 | # status left style | ||
249 | tmux_conf_theme_status_left_fg="$tmux_conf_theme_colour_6,$tmux_conf_theme_colour_7,$tmux_conf_theme_colour_8" | ||
250 | tmux_conf_theme_status_left_bg="$tmux_conf_theme_colour_9,$tmux_conf_theme_colour_10,$tmux_conf_theme_colour_11" | ||
251 | tmux_conf_theme_status_left_attr="bold,none,none" | ||
252 | |||
253 | # status right style | ||
254 | tmux_conf_theme_status_right_fg="$tmux_conf_theme_colour_12,$tmux_conf_theme_colour_13,$tmux_conf_theme_colour_14" | ||
255 | tmux_conf_theme_status_right_bg="$tmux_conf_theme_colour_15,$tmux_conf_theme_colour_16,$tmux_conf_theme_colour_17" | ||
256 | tmux_conf_theme_status_right_attr="none,none,bold" | ||
257 | |||
258 | # pairing indicator | ||
259 | tmux_conf_theme_pairing="⚇" # U+2687 | ||
260 | tmux_conf_theme_pairing_fg="none" | ||
261 | tmux_conf_theme_pairing_bg="none" | ||
262 | tmux_conf_theme_pairing_attr="none" | ||
263 | |||
264 | # prefix indicator | ||
265 | tmux_conf_theme_prefix="⌨" # U+2328 | ||
266 | tmux_conf_theme_prefix_fg="none" | ||
267 | tmux_conf_theme_prefix_bg="none" | ||
268 | tmux_conf_theme_prefix_attr="none" | ||
269 | |||
270 | # mouse indicator | ||
271 | tmux_conf_theme_mouse="↗" # U+2197 | ||
272 | tmux_conf_theme_mouse_fg="none" | ||
273 | tmux_conf_theme_mouse_bg="none" | ||
274 | tmux_conf_theme_mouse_attr="none" | ||
275 | |||
276 | # root indicator | ||
277 | tmux_conf_theme_root="!" | ||
278 | tmux_conf_theme_root_fg="none" | ||
279 | tmux_conf_theme_root_bg="none" | ||
280 | tmux_conf_theme_root_attr="bold,blink" | ||
281 | |||
282 | # synchronized indicator | ||
283 | tmux_conf_theme_synchronized="⚏" # U+268F | ||
284 | tmux_conf_theme_synchronized_fg="none" | ||
285 | tmux_conf_theme_synchronized_bg="none" | ||
286 | tmux_conf_theme_synchronized_attr="none" | ||
287 | |||
288 | # battery bar symbols | ||
289 | tmux_conf_battery_bar_symbol_full="◼" | ||
290 | tmux_conf_battery_bar_symbol_empty="◻" | ||
291 | #tmux_conf_battery_bar_symbol_full="♥" | ||
292 | #tmux_conf_battery_bar_symbol_empty="·" | ||
293 | |||
294 | # battery bar length (in number of symbols), possible values are: | ||
295 | # - auto | ||
296 | # - a number, e.g. 5 | ||
297 | tmux_conf_battery_bar_length="auto" | ||
298 | |||
299 | # battery bar palette, possible values are: | ||
300 | # - gradient (default) | ||
301 | # - heat | ||
302 | # - "colour_full_fg,colour_empty_fg,colour_bg" | ||
303 | tmux_conf_battery_bar_palette="gradient" | ||
304 | #tmux_conf_battery_bar_palette="#d70000,#e4e4e4,#000000" # red, white, black | ||
305 | |||
306 | # battery hbar palette, possible values are: | ||
307 | # - gradient (default) | ||
308 | # - heat | ||
309 | # - "colour_low,colour_half,colour_full" | ||
310 | tmux_conf_battery_hbar_palette="gradient" | ||
311 | #tmux_conf_battery_hbar_palette="#d70000,#ff5f00,#5fff00" # red, orange, green | ||
312 | |||
313 | # battery vbar palette, possible values are: | ||
314 | # - gradient (default) | ||
315 | # - heat | ||
316 | # - "colour_low,colour_half,colour_full" | ||
317 | tmux_conf_battery_vbar_palette="gradient" | ||
318 | #tmux_conf_battery_vbar_palette="#d70000,#ff5f00,#5fff00" # red, orange, green | ||
319 | |||
320 | # symbols used to indicate whether battery is charging or discharging | ||
321 | tmux_conf_battery_status_charging="↑" # U+2191 | ||
322 | tmux_conf_battery_status_discharging="↓" # U+2193 | ||
323 | #tmux_conf_battery_status_charging="🔌" # U+1F50C | ||
324 | #tmux_conf_battery_status_discharging="🔋" # U+1F50B | ||
325 | |||
326 | # clock style (when you hit <prefix> + t) | ||
327 | # you may want to use %I:%M %p in place of %R in tmux_conf_theme_status_right | ||
328 | tmux_conf_theme_clock_colour="$tmux_conf_theme_colour_4" | ||
329 | tmux_conf_theme_clock_style="24" | ||
330 | |||
331 | |||
332 | # -- clipboard ----------------------------------------------------------------- | ||
333 | |||
334 | # in copy mode, copying selection also copies to the OS clipboard | ||
335 | # - true | ||
336 | # - false (default) | ||
337 | # - disabled | ||
338 | # on macOS, this requires installing reattach-to-user-namespace, see README.md | ||
339 | # on Linux, this requires xsel, xclip or wl-copy | ||
340 | tmux_conf_copy_to_os_clipboard=false | ||
341 | |||
342 | |||
343 | # -- user customizations ------------------------------------------------------- | ||
344 | # this is the place to override or undo settings | ||
345 | |||
346 | # increase history size | ||
347 | #set -g history-limit 10000 | ||
348 | |||
349 | # start with mouse mode enabled | ||
350 | #set -g mouse on | ||
351 | |||
352 | # force Vi mode | ||
353 | # really you should export VISUAL or EDITOR environment variable, see manual | ||
354 | #set -g status-keys vi | ||
355 | #set -g mode-keys vi | ||
356 | |||
357 | # replace C-b by C-a instead of using both prefixes | ||
358 | # set -gu prefix2 | ||
359 | # unbind C-a | ||
360 | # unbind C-b | ||
361 | # set -g prefix C-a | ||
362 | # bind C-a send-prefix | ||
363 | |||
364 | # if you don't want Oh my tmux! to alter a binding, use #!important | ||
365 | # bind v new-window -c #{pane_current_path} #!important | ||
366 | |||
367 | # move status line to top | ||
368 | #set -g status-position top | ||
369 | |||
370 | |||
371 | # -- tpm ----------------------------------------------------------------------- | ||
372 | |||
373 | # while I don't use tpm myself, many people requested official support so here | ||
374 | # is a seamless integration that automatically installs plugins in parallel | ||
375 | |||
376 | # whenever a plugin introduces a variable to be used in 'status-left' or | ||
377 | # 'status-right', you can use it in 'tmux_conf_theme_status_left' and | ||
378 | # 'tmux_conf_theme_status_right' variables. | ||
379 | |||
380 | # by default, launching tmux will update tpm and all plugins | ||
381 | # - true (default) | ||
382 | # - false | ||
383 | tmux_conf_update_plugins_on_launch=false | ||
384 | |||
385 | # by default, reloading the configuration will update tpm and all plugins | ||
386 | # - true (default) | ||
387 | # - false | ||
388 | tmux_conf_update_plugins_on_reload=false | ||
389 | |||
390 | # by default, reloading the configuration will uninstall tpm and plugins when no | ||
391 | # plugins are enabled | ||
392 | # - true (default) | ||
393 | # - false | ||
394 | tmux_conf_uninstall_plugins_on_reload=true | ||
395 | |||
396 | # /!\ the tpm bindings differ slightly from upstream: | ||
397 | # - installing plugins: <prefix> + I | ||
398 | # - uninstalling plugins: <prefix> + Alt + u | ||
399 | # - updating plugins: <prefix> + u | ||
400 | |||
401 | # /!\ do not add set -g @plugin 'tmux-plugins/tpm' | ||
402 | # /!\ do not add run '~/.tmux/plugins/tpm/tpm' | ||
403 | |||
404 | # to enable a plugin, use the 'set -g @plugin' syntax: | ||
405 | # visit https://github.com/tmux-plugins for available plugins | ||
406 | #set -g @plugin 'tmux-plugins/tmux-copycat' | ||
407 | #set -g @plugin 'tmux-plugins/tmux-cpu' | ||
408 | #set -g @plugin 'tmux-plugins/tmux-resurrect' | ||
409 | #set -g @plugin 'tmux-plugins/tmux-continuum' | ||
410 | #set -g @continuum-restore 'on' | ||
411 | |||
412 | set -g @plugin 'seebi/tmux-colors-solarized' | ||
413 | |||
414 | # -- custom variables ---------------------------------------------------------- | ||
415 | |||
416 | # to define a custom #{foo} variable, define a POSIX shell function between the | ||
417 | # '# EOF' and the '# "$@"' lines. Please note that the opening brace { character | ||
418 | # must be on the same line as the function name otherwise the parse won't detect | ||
419 | # it. | ||
420 | # | ||
421 | # then, use #{foo} in e.g. the 'tmux_conf_theme_status_left' or the | ||
422 | # 'tmux_conf_theme_status_right' variables. | ||
423 | |||
424 | # # /!\ do not remove the following line | ||
425 | # EOF | ||
426 | # | ||
427 | # # /!\ do not "uncomment" the functions: the leading "# " characters are needed | ||
428 | # | ||
429 | # weather() { # see https://github.com/chubin/wttr.in#one-line-output | ||
430 | # curl -f -s -m 2 'wttr.in?format=3' || printf '\n' # /!\ make sure curl is installed | ||
431 | # sleep 900 # sleep for 15 minutes, throttle network requests whatever the value of status-interval | ||
432 | # } | ||
433 | # | ||
434 | # online() { | ||
435 | # ping -c 1 1.1.1.1 >/dev/null 2>&1 && printf '✔' || printf '✘' | ||
436 | # } | ||
437 | # | ||
438 | # "$@" | ||
439 | # # /!\ do not remove the previous line | ||
440 | |||
441 | # switch panes using Alt-arrow without prefix | ||
442 | bind -n M-Left select-pane -L | ||
443 | bind -n M-Right select-pane -R | ||
444 | bind -n M-Up select-pane -U | ||
445 | bind -n M-Down select-pane -D | ||
446 | |||
447 | # remap prefix from 'C-b' to 'C-a' | ||
448 | unbind C-b | ||
449 | set-option -g prefix C-a | ||
450 | bind-key C-a send-prefix | ||
451 | |||
452 | # split panes using | and - | ||
453 | bind \\ split-window -h | ||
454 | bind - split-window -v | ||
455 | unbind '"' | ||
456 | unbind % | ||
457 | |||
458 | # reload config file (change file location to your the tmux.conf you want to use) | ||
459 | bind r source-file ~/.tmux.conf | ||
460 | |||
461 | |||