-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
112 lines (89 loc) · 3.24 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
setw -g mode-keys vi
# Fix vim colours
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ',*:Tc'
# Fix nvim cursor shape
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
# Fix tmux escape lag
set -s escape-time 0
# Rebind split
unbind '"'
bind-key s split-window -v -c "#{pane_current_path}"
unbind %
bind-key v split-window -h -c "#{pane_current_path}"
# New window uses same cwd
bind c new-window -c "#{pane_current_path}"
# Pane selection
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -L
bind-key -r C-h select-pane -L
bind-key -r C-j select-pane -D
bind-key -r C-k select-pane -U
bind-key -r C-l select-pane -L
# Historical pane selection
bind-key o select-pane -t :.+
bind-key i select-pane -t :.-
# Pane resizing
bind-key -r H resize-pane -L
bind-key -r J resize-pane -D
bind-key -r K resize-pane -U
bind-key -r L resize-pane -R
# Switch windows similarly to in vim
unbind "n"
unbind "p"
bind-key -r C-n next-window
bind-key -r C-p previous-window
# Copy/paste vi keys
bind-key y send-keys -X copy-selection-and-cancel
bind-key p paste-buffer
#####
# tmux_color_active='#fac42f'
tmux_color_active='#f5b716'
# tmux_color_passive_fg='#ffdd85'
tmux_color_passive_fg='#ffd7af'
tmux_color_terminal_background='#282C34'
# tmux_color_right_status_fg='#93a39f'
# tmux_color_right_status_fg='#81b8ad'
# tmux_color_right_status_fg='#c0c0c0' # silver
tmux_color_right_status_fg='#bbc6c9' # Stormhost Silver (Metal)
# tmux_color_copy_mode='#f5b716'
# tmux_color_copy_mode='#f5a416'
# tmux_color_copy_mode='#f59216'
# tmux_color_copy_mode='#ff7f50'
# tmux_color_copy_mode='#40c0a7'
# tmux_color_copy_mode='#49d6bb'
# tmux_color_copy_mode='#47d1b6'
tmux_color_copy_mode='#5cccb6'
# tmux_color_copy_mode='#81b8ad'
# tmux_color_copy_mode='#00abab'
# tmux_color_copy_mode='#87ceeb'
# tmux_color_clock_mode='#40c0a7'
tmux_color_clock_mode='#04d9ff'
# tmux_color_clock_mode='#00fdff'
# Prefix highlight {{{
# Highlighthing when you press tmux prefix key
# Use '#{prefix_highlight}' place holder.
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
# set -g @prefix_highlight_prefix_prompt 'Prefixomucco!'
set -g @prefix_highlight_prefix_prompt 'Prefix'
set -g @prefix_highlight_copy_prompt 'Copy-mode'
set -g @prefix_highlight_sync_prompt 'Synchronize-mode'
set -g @prefix_highlight_fg '$tmux_color_passive_fg,bold'
# set -g @prefix_highlight_fg '$tmux_color_right_status_fg,bold'
# set -g @prefix_highlight_fg 'colour253,bold'
# set -g @prefix_highlight_fg 'colour233,bold'
# set -g @prefix_highlight_fg '#04005e,bold'
# set -g @prefix_highlight_fg '#b8b8b8,bold'
# set -g @prefix_highlight_bg '#ff79c6'
# set -g @prefix_highlight_bg '#ff00d0'
# set -g @prefix_highlight_bg '#ff00c6'
# set -g @prefix_highlight_bg '#ff47dd'
# set -g @prefix_highlight_bg '#ff5ce1'
set -g @prefix_highlight_bg '#dd1d5a'
set -g @prefix_highlight_show_copy_mode 'on'
# set -g @prefix_highlight_copy_mode_attr 'fg=black,bg=yellow,bold' # default is 'fg=default,bg=yellow'
set -g @prefix_highlight_copy_mode_attr 'fg=colour239,bg=#5cccb6,bold' # default is 'fg=default,bg=yellow'
set -g @prefix_highlight_show_sync_mode 'on'
set -g @prefix_highlight_sync_mode_attr 'fg=black,bg=green' # default is 'fg=default,bg=yellow'