-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
73 lines (58 loc) · 2.06 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
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-open \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-continuum \
'
# screen compatible prefix
set -g prefix2 C-a
bind C-a send-prefix -2
# terminal and mouse options
set -g default-terminal "screen-256color"
set -g history-limit 30000
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
set -qg mouse-resize-pane on
set -qg mouse-select-pane on
set -qg mouse-select-window on
# act like vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
bind-key v split-window -h
bind-key s split-window -v
# synchronize panes binding
bind C-S setw synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# status bar colors
set -g status-bg '#111111'
set -g status-fg '#dddddd'
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# status bar widths
set -g status-interval 3
# default window title colors
set -g window-status-format "(#I) #W"
# active window
setw -g window-status-current-style "fg=#90EE90,bg=#111111"
setw -g window-status-current-format "{#I} #W"
setw -g window-status-activity-style "fg=#AAAAAA,bg=#111111"
# status info
set -g status-left '#[fg=#f86d72,bold][#H] #[fg=#f86d72]· #[fg=#f86d72,bold]#S #[fg=#f86d72]· '
set -g status-left-length 25
tmux_conn="#[fg=#ffffff]#(ping -c 2 1.1.1.1 2>/dev/null &>/dev/null && echo 'CONN ✓' || echo 'CONN ⚠') "
set -g status-right $tmux_conn
set -g status-right-length 16
set -sg escape-time 0
# reload
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
run-shell '~/.tmux/plugins/tpm/tpm'