Tmux Configuration
I've started to use Terminator instead of Tmux
Anyway - here is the tmux config which worked for me.
1
nano /root/.tmux.conf
Copied!
1
# 0 is too far from ` ;)
2
set -g base-index 1
3
4
# Automatically set window title
5
set-window-option -g automatic-rename on
6
set-option -g set-titles on
7
8
#set -g default-terminal screen-256color
9
set -g status-keys vi
10
set -g history-limit 10000
11
12
setw -g mode-keys vi
13
setw -g mode-mouse on
14
setw -g monitor-activity on
15
16
bind-key v split-window -h
17
bind-key s split-window -v
18
19
bind-key J resize-pane -D 5
20
bind-key K resize-pane -U 5
21
bind-key H resize-pane -L 5
22
bind-key L resize-pane -R 5
23
24
bind-key M-j resize-pane -D
25
bind-key M-k resize-pane -U
26
bind-key M-h resize-pane -L
27
bind-key M-l resize-pane -R
28
29
# Vim style pane selection
30
bind h select-pane -L
31
bind j select-pane -D
32
bind k select-pane -U
33
bind l select-pane -R
34
35
# Use Alt-vim keys without prefix key to switch panes
36
bind -n M-h select-pane -L
37
bind -n M-j select-pane -D
38
bind -n M-k select-pane -U
39
bind -n M-l select-pane -R
40
41
# Use Alt-arrow keys without prefix key to switch panes
42
bind -n M-Left select-pane -L
43
bind -n M-Right select-pane -R
44
bind -n M-Up select-pane -U
45
bind -n M-Down select-pane -D
46
47
# Shift arrow to switch windows
48
bind -n S-Left previous-window
49
bind -n S-Right next-window
50
51
# No delay for escape key press
52
set -sg escape-time 0
53
54
# Reload tmux config
55
bind r source-file ~/.tmux.conf
56
57
# THEME
58
set -g status-bg black
59
set -g status-fg white
60
set -g window-status-current-bg white
61
set -g window-status-current-fg black
62
set -g window-status-current-attr bold
63
set -g status-interval 60
64
set -g status-left-length 30
65
set -g status-left '#[fg=green](#S) #(whoami)'
66
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
Copied!
Copy link