-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtmux.conf
86 lines (76 loc) · 3.03 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
set-option -g mode-keys emacs
if "[ -f /usr/share/terminfo/t/tmux ]" "set-option -g default-terminal tmux"
set-option -ga terminal-overrides ",xterm:Tc"
set-option -g prefix `
set-option -g base-index 1
set-option -g renumber-windows on
set-option -g mouse on
set-option -g visual-activity off
set-option -g allow-rename on
set-option -g automatic-rename on
set-option -g automatic-rename-format '#T'
set-option -g detach-on-destroy off
set-option -g status-justify centre
set-option -g status-left "#[fg=green]#h"
set-option -g status-left-length 40
set-option -g status-right "#[fg=red]#S"
set-option -g window-status-current-format "[#I:#W]"
set-option -s escape-time 20
set-option -g repeat-time 0
set-option -g set-titles on
set-option -g set-titles-string "#W"
set-window-option -g monitor-activity on
set-window-option -g xterm-keys on
bind-key | split-window -h
bind-key - split-window -v
bind-key C-y paste-buffer
bind-key M-p pipe-pane -o 'cat >> tmux-rec.#h'
unbind-key C-b
bind-key '"' choose-tree
bind-key @ set-window-option synchronize-panes
bind-key Space last-window
bind-key ` send-prefix
bind-key -n M-NPage next-window
bind-key -n M-PPage previous-window
bind-key -n M-Left select-pane -L
bind-key -n M-Down select-pane -D
bind-key -n M-Up select-pane -U
bind-key -n M-Right select-pane -R
bind-key Left select-pane -L
bind-key Down select-pane -D
bind-key Up select-pane -U
bind-key Right select-pane -R
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 r command-prompt "rename-window %%"
bind-key S setw monitor-silence 10 \; setw monitor-activity off \; display-message "Monitoring Silence"
bind-key A setw monitor-silence 0 \; setw monitor-activity on \; display-message "Monitoring Activity"
bind-key / copy-mode \; command-prompt -i -p "(search up)" "send -X search-backward-incremental \"%%%\""
bind-key -T copy-mode C-r command-prompt -i -p "(search up)" "send -X search-backward-incremental \"%%%\""
bind-key -T copy-mode C-s command-prompt -i -p "(search down)" "send -X search-forward-incremental \"%%%\""
bind-key -T copy-mode C-left send-keys -X previous-word
bind-key -T copy-mode C-right send-keys -X next-word-end
bind-key -T copy-mode Enter send-keys -X copy-pipe-and-cancel "tmux paste-buffer"
set -g @extrakto_grab_area "window full"
## set status bar
set -g status-style bg=black,fg=default
## highlight active window
setw -g window-status-style bg=default,fg=default
setw -g window-status-current-style bg=default,fg=blue
## highlight activity in status bar
setw -g window-status-activity-style bg=default,fg=yellow
## pane border and colors
set -g pane-active-border-style fg=cyan
set -g pane-border-style fg=white
set -g message-style bg=black,fg=brightred
set -g message-command-style bg=white,fg=default
set -g mode-style bg=white,fg=default
## plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'laktak/extrakto'
run '~/.tmux/plugins/tpm/tpm'