forked from DanielFGray/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
110 lines (95 loc) · 3.58 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
unbind C-b; set -g prefix C-a
bind a send-prefix
bind C-a last-window
unbind n; bind n next-window
unbind N; bind N previous-window
unbind p; bind p last-pane
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key C-h select-pane -L
bind-key C-j select-pane -D
bind-key C-k select-pane -U
bind-key C-l select-pane -R
bind-key -r "<" swap-window -t -1
bind-key -r ">" swap-window -t +1
bind-key -r H resize-pane -L 5
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r L resize-pane -R 5
bind-key "|" split-window -h -c "#{pane_current_path}"
bind-key "-" split-window -v -c "#{pane_current_path}"
unbind :
unbind \; ; bind \; command-prompt
bind , command-prompt -I '#W' "rename-window '%%'"
bind @ command-prompt "joinp -s '%%'"
bind C command-prompt "new-window '%%'"
unbind [; bind v copy-mode
unbind-key -T copy-mode-vi v
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
bind-key -T copy-mode-vi 'C-v' send-keys -X rectangle-toggle
bind-key r source-file ~/.tmux.conf \; display-message 'Sourced .tmux.conf!'
set -g mode-keys vi
set -g mouse on
set -g display-panes-time 1000
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
set -g aggressive-resize on
set -g allow-rename off
set -g automatic-rename off
set -g clock-mode-style 12
set -g alternate-screen on
set -g monitor-activity off
set -g visual-activity off
set -g default-shell /bin/zsh
set -g default-command /bin/zsh
set -g set-titles on
set -g set-titles-string '[tmux] #{pane_current_command}'
set -g repeat-time 100
set -g default-terminal "tmux-256color"
set -g escape-time 10
# set -ga terminal-overrides ',*:sitm@,ritm@'
set -g pane-border-fg black
set -g pane-active-border-fg blue
set -g display-panes-colour white
set -g display-panes-active-colour blue
set -g status-justify right
set -g status-bg black
set -g status-fg default
set -g message-fg black
set -g message-bg brightwhite
set -g status-interval 3
set -g status-position bottom
set -g window-status-separator ''
set -g window-status-current-format '#[fg=blue]#[fg=black,bg=blue] #I #W '
set -g window-status-format '#[fg=brightblack,bg=black]#[fg=black,bg=brightblack] #I #[fg=black,bg=brightblack]#[fg=brightblack,bg=black] #W '
set -g status-left-length 80
set -g status-left "#{prefix_highlight}"
set -g -a status-left "#[bg=brightwhite,fg=black] "
set -g -a status-left "#S:#I.#P#F "
set -g -a status-left "#[fg=brightwhite,bg=blue]#[fg=black] "
set -g -a status-left "#H "
set -g -a status-left "#[fg=blue,bg=black]#[fg=default] "
set -g -a status-left "#T"
set -g status-right-length 35
set -g status-right "#[fg=brightblack,bg=black]#[fg=black,bg=brightblack]"
if -F "$SSH_CONNECTION" "set -g -a status-right \" #(free -h | awk 'NR==2{print $7}') \""
set -g -a status-right " #(~/.local/bin/space -s)"
set -g -a status-right " #[fg=brightwhite,bg=brightblack]#[bg=brightwhite,fg=black]"
set -g -a status-right " #(cut -d ' ' -f 1-3 /proc/loadavg) "
if -F "$SSH_CONNECTION" "source-file $HOME/dotfiles/tmux.remote.conf"
set -g @yank_selection 'primary'
set -g @prefix_highlight_output_prefix '#[bg=black]#[fg=brightwhite] '
set -g @prefix_highlight_output_suffix " #[fg=black]#[bg=brightwhite]"
set -g @plugin "tmux-plugins/tpm"
set -g @plugin "tmux-plugins/tmux-yank"
set -g @plugin "tmux-plugins/tmux-copycat"
set -g @plugin "tmux-plugins/tmux-prefix-highlight"
run-shell ~/.tmux/plugins/tpm/tpm
unbind -T root WheelDownPane
unbind -T root WheelUpPane
unbind -T root MouseDown3Pane
# vim:ft=tmux: