-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtmux.conf
More file actions
96 lines (85 loc) · 2.85 KB
/
Copy pathtmux.conf
File metadata and controls
96 lines (85 loc) · 2.85 KB
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
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-battery'
unbind c-b
bind c-o send-prefix
set -g base-index 1
set -s default-terminal tmux-256color
set -g display-time 1000
set -g focus-events on
set -g history-limit 50000
set -g message-style bg=default,fg=blue
set -g mode-keys vi
set -g mouse on
set -g pane-active-border-style fg=blue
set -g pane-base-index 1
set -g pane-border-style fg=colour242
set -g prefix c-o
set -g status-interval 1
set -g status-justify left
set -g status-keys emacs
set -g status-right "⎡#{?#{!=:#{battery_percentage},},⚛ #{battery_percentage} │ ,}☉ %a %-m.%d │ ♁ %l:%M %p⎤"
set -g status-style bg=default,fg=blue
set -g window-status-current-format "#I:#W#{?window_zoomed_flag,*,}"
set -g window-status-current-style bg=blue,fg=black
set -g window-status-format "#I:#W#{?window_zoomed_flag,*,}"
set -g window-status-separator " "
set -ga terminal-overrides ,alacritty:RGB
set -s escape-time 0
set -g automatic-rename-format "\
#{?pane_in_mode,[tmux],\
#{?#{m/r:^[0-9]+\\.[0-9]+\\.[0-9]+$,#{pane_current_command}},claude,\
#{pane_current_command}}}\
#{?pane_dead,[dead],}"
bind e select-layout even-horizontal
bind E select-layout even-vertical
bind s source ~/.tmux.conf \; display "Sourced!"
bind '"' split-window -c '#{pane_current_path}' -h
bind = split-window -c '#{pane_current_path}'
bind % choose-buffer
bind -r c-h select-window -t :-
bind -r c-l select-window -t :+
bind -r c-k swap-pane -U
bind -r c-j swap-pane -D
bind -r L resize-pane -R 5
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
unbind -T copy-mode-vi Enter
bind -T copy-mode-vi Enter send -X copy-pipe-and-cancel cpy
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel cpy
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-pipe-and-cancel cpy
set -g @IS_VIM \
"ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+/)?g?(view|n?vim?x?)(diff)?$'"
bind -n M-h if "#{E:@IS_VIM}" "send M-h" "select-pane -L"
bind -n M-j if "#{E:@IS_VIM}" "send M-j" "select-pane -D"
bind -n M-k if "#{E:@IS_VIM}" "send M-k" "select-pane -U"
bind -n M-l if "#{E:@IS_VIM}" "send M-l" "select-pane -R"
bind -n 'M-\' if "#{E:@IS_VIM}" "send M-\\" "select-pane -l"
bind -T copy-mode-vi M-h select-pane -L
bind -T copy-mode-vi M-j select-pane -D
bind -T copy-mode-vi M-k select-pane -U
bind -T copy-mode-vi M-l select-pane -R
bind -T copy-mode-vi 'M-\' select-pane -l
bind -n M-H select-window -t :-
bind -n M-L select-window -t :+
run -b '~/.tmux/plugins/tpm/tpm'
bind -T root F12 {
set prefix None
set key-table off
set status off
if -F '#{pane_in_mode}' 'send -X cancel'
refresh -S
}
bind -T off F12 {
set -u prefix
set -u key-table
set -u status
refresh -S
}
if '[ -n "$SSH_CONNECTION" ]' {
set -g status-left "⎡#H │ #S⎤ "
} {
set -g status-left "⎡#S⎤ "
}