summaryrefslogtreecommitdiffstats
path: root/.tmux.conf
blob: 5bcd73e509aabeeccb938d8a52143bd66b9566f8 (plain)
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
# vim: ft=tmux
# original from bl1nk
# Styles
setw -g mode-style fg=yellow,bg=default,bright
setw -g window-status-style fg=default,bg=default,dim
setw -g window-status-current-style fg=yellow,bg=default,dim
set -g message-style fg=red,bg=default,bright
set -g status-style fg=default,bg=black,bright
set -g pane-active-border-style fg=default,bg=black

# Options
set -g bell-action any
set -g history-limit 50000
set -g status on
set -g status-keys vi
set -g set-titles on

set -g default-terminal "screen-256color"
set -g set-titles-string "tmux:#I [ #W ]"
set -g base-index 1

#set -g status-left-length 30
set -g status-left '#[fg=green]#H #[fg=black,bright]• #[default]#[fg=blue]#(uname -r)#[default] #[fg=black,bright]• #[default]'
set -g status-justify centre
set -g status-right '#[fg=black,bright]• #[fg=magenta]#(cat /proc/loadavg)'
set -g status-left-length 40
set -g status-right-length 40

setw -g automatic-rename on
setw -g clock-mode-style 24
setw -g mode-keys vi
#setw -g mode-mouse on
setw -g aggressive-resize on

set -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix

#bind-key C-l command-prompt "link-window -s '%%'"
bind-key W command-prompt "swap-window -t '%%'"
bind-key R command-prompt "rename-session '%%'"

# confirm before killing a window or the server
bind-key k confirm kill-window
bind-key K confirm kill-server

#bind j down-pane
#bind k up-pane

# Keys to switch session.
#bind q switchc -tmain
#bind w switchc -tmusic

# Other key bindings.
bind i choose-window
bind v neww -c '#{pane_current_path}'

# Default Sessions
#new -d -s maini

bind-key b set-option status
bind r source-file ~/.tmux.conf