-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
86 lines (69 loc) · 1.95 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 -g default-terminal "screen-256color"
set -g utf8 on
set -g status-utf8 on
# easier prefix
set -g prefix C-a
unbind C-b
bind-key a send-prefix
# vi mode
setw -g mode-keys vi
set -g status-keys vi
set -s escape-time 0
# Fix index to number row
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
# Activity/notification
set -g bell-action none
set -g monitor-activity on
set -g visual-activity off
# Misc settings
set -g display-time 1500
set -g display-panes-time 1500
setw -g aggressive-resize on
# Terminal emulator window title
setw -g automatic-rename on
set -g set-titles on
set -g set-titles-string '#h: #W #T'
# Status Bar
set -g status-interval 1
set -g status-fg white
set -g status-bg colour234
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set -g status-left-length 32
set -g status-right-length 150
set -g status-left '#[fg=colour245,bg=colour238,bold] #h '
setw -g window-status-format '#[fg=white,bg=colour234] #I|#W #T#F '
setw -g window-status-current-format '#[fg=colour25,bg=colour39,noreverse,bold] #I|#W #T#F '
set -g status-right '#(tail -1 /dev/shm/tmux-status) #[fg=colour33]%F #[fg=yellow]%k:%M:%S '
# Clock
setw -g clock-mode-colour green
setw -g clock-mode-style 24
# History
set -g history-limit 100000
# ICCCM
unbind C-c
unbind C-v
bind-key C-c run "tmux show-buffer | xclip -i -selection clipboard"
bind-key C-v run "tmux set-buffer \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
# More straight forward key bindings for splitting
unbind %
bind-key | split-window -h
bind-key h split-window -h
unbind '"'
bind-key - split-window -v
bind-key v split-window -v
unbind M-Up
unbind M-Down
unbind M-Left
unbind M-Right
bind-key -r M-Up resize-pane -U
bind-key -r M-Down resize-pane -D
bind-key -r M-Left resize-pane -L
bind-key -r M-Right resize-pane -R
# Toggle sending input to all panes
bind I setw synchronize-panes