summaryrefslogtreecommitdiffstats
path: root/.tmux.conf
blob: 48fd283e372315277958cdc733aca404b66a55a3 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# vim: ft=tmux
# original from bl1nk
# Styles
setw -g mode-attr bright
setw -g mode-bg default
setw -g mode-fg yellow

setw -g window-status-attr dim
setw -g window-status-bg default
setw -g window-status-fg default

setw -g window-status-current-attr dim
setw -g window-status-current-bg default
setw -g window-status-current-fg yellow

set -g message-attr bright
set -g message-bg default
set -g message-fg red

set -g status-attr bright
set -g status-bg black
set -g status-fg default

set -g pane-active-border-fg default
set -g pane-active-border-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