-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
75 lines (65 loc) · 1.88 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
new-session
# instructs tmux to expect UTF-8 sequences
setw -g utf8 on
set -g status-utf8 on
# default terminal
set -g default-terminal "xterm-256color"
setw -g aggressive-resize on
# tmux key
set-option -g prefix C-a
# vi bindings
setw -g mode-keys vi
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
set -g visual-content on
# prevent automatic renaming
setw -g automatic-rename off
# cycle through panes
bind-key -r Space select-pane -t :.+
# move around panels
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panels
bind -r Left resize-pane -L 3
bind -r Down resize-pane -D 3
bind -r Up resize-pane -U 3
bind -r Right resize-pane -R 3
# move through windows
bind-key -r Tab rotate-window
bind-key -r J next-window
bind-key -r K previous-window
# last window
bind-key a last-window
# splitting windows
unbind % # Remove default binding since we’re replacing
bind s split-window -v
bind v split-window -h
bind S list-sessions
# inteact with system clipboard
unbind p
bind p run "xclip -o | tmux load-buffer - ; tmux paste-buffer"
bind y run "tmux show-buffer | xclip -i"
# Set status bar
set -g status-bg green
# Highlight active window
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg green
set -g status-right '#[fg=green]#(acpi -V | head -n 1) #[fg=cyan]%a %d %b, %H:%M#[default]'
set -g status-interval 2
set -g status-right-length 90
# Highlight active pane borders
set-option -g pane-active-border-fg red
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ‘#[fg=green]#H’
# ignore mouse
set-window-option -g window-status-current-bg green
set-window-option -g window-status-current-fg black
set-option -g mouse-select-pane off
set-option -g mouse-resize-pane off
set-option -g mouse-select-window off
set-window-option -g mode-mouse off