-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
68 lines (51 loc) · 1.6 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
# tmux.conf
###########
### General ###
set -g default-terminal "screen-256color"
set-window-option -g xterm-keys on # to make ctrl-arrow, etc. work
set-option -sg escape-time 50 # Set the esc/alt disambiguation timeout
# to 50ms. (Useful for VIm)
setw -g mode-keys vi # Enable Vim keybindings
# Activate powerline
source $HOME/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
# Mouse options
setw -g mode-mouse on
set-option -g mouse-select-window on
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
setw -g monitor-activity on
set -g visual-activity on
### Key-Bindings ###
# Use ^A as the magic keybinding
set-option -g prefix C-a
unbind-key C-b
bind-key a send-prefix
### Vim style keybindings
bind-key j resize-pane -D
bind-key k resize-pane -U
bind-key h resize-pane -L
bind-key l resize-pane -R
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
# Use Ctrl-Alt-vim keys without prefix key to switch panes
bind -n C-M-h select-pane -L
bind -n C-M-j select-pane -D
bind -n C-M-k select-pane -U
bind -n C-M-l select-pane -R
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Reload tmux config
bind r source-file ~/.tmux.conf
### Style ###
# Set Status bar
set -g status-bg black
set -g status-fg white
set -g status-right '#[fg=green]#H %F'
# Highlight active window
set-window-option -g window-status-current-bg red
# Windows titles
set-option -g set-titles on
set-option -g set-titles-string '[#S:#I #H] #W'