-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
48 lines (39 loc) · 1.24 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
# ` is an interesting key for a prefix
set -g prefix `
unbind-key C-b
# Use `` to write a `
bind-key ` send-prefix
set -g default-terminal "screen-256color"
# mandatory for vim
set -s escape-time 1
# maximize pane
unbind +
bind + resize-pane -Z
# basic settings
set -g history-limit 10000
set -g utf8
set-window-option -g mode-keys vi
set-option -g status-keys vi
set-window-option -g utf8 on
# vim-like pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# status bar
set-option -g status-utf8 on
set-option -g status-justify right
set-option -g status-bg black
set-option -g status-fg cyan
set-option -g status-interval 5
set-option -g status-left-length 30
set-option -g status-left '#[fg=magenta]» #[fg=blue,bold]#T#[default]'
set-option -g status-right '#[fg=cyan]»» #[fg=blue,bold]###S #[fg=magenta]%R %m-%d#(acpi | cut -d ',' -f 2)#[default]'
set-option -g visual-activity on
set-window-option -g monitor-activity on
set-window-option -g window-status-current-fg white
# clock
set-window-option -g clock-mode-colour cyan
set-window-option -g clock-mode-style 24
# copy for X
bind-key y save-buffer /tmp/tmux-buf \; run-shell "cat /tmp/tmux-buf | xclip -selection 'clipboard'; rm /tmp/tmux-buf;"