-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
93 lines (71 loc) · 2.94 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#set -g terminal-overrides 'xterm*:smcup@:rmcup@' # Mouse scrolling actually scrolls screen
# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key a send-prefix
bind-key C-a last-window
bind-key Escape copy-mode
bind-key -nr S-Right select-window -t+1
bind-key -nr S-Left select-window -t-1
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1
set-option -g history-limit 100000
# status bar
set-option -g status-utf8 on
# default statusbar colors
set -g status-fg colour39
set -g status-bg default
#set -g status-attr bright
set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 40
set -g status-right-length 140
set -g status-left '#[fg=colour31]#H : #(uname -r | cut -c 1-8)'
set -g status-right '#[fg=colour31]#(tmux-mem-cpu-load 1) #[bold]#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",")'
# default window title colors
set-window-option -g window-status-fg default
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg colour45
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
# no highlight for windows with activity
set-window-option -g window-status-activity-attr default
setw -g window-status-format '#I[#W]#F'
setw -g window-status-current-format '#I#[fg=colour39,nobold][#[default]#W#[fg=colour39,nobold]]#F#[default]'
# Start numbering at 0
set -g base-index 0
# # Allows for faster key repetition
set -s escape-time 250
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity off
# Use xterm key sequences
set-window-option -g xterm-keys on
# Vi copypaste mode
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# reload config
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
bind r refresh-client
# auto window rename
setw -g automatic-rename on
# rm mouse mode fail
set -g mode-mouse off
set -g mouse-resize-pane off
set -g mouse-select-pane off
set -g mouse-select-window off
## color
set -g default-terminal "screen-256color"
#bind-key S run-shell "echo 'restarting starman'; sudo /etc/init.d/starman-sergey.morozov restart 2>&1"
#bind-key S run-shell "touch /tmp/uwsgi/morozov-games.reload" \; display-message "Restarting uwsgi..."
bind-key S send-keys C-z "rests && fg 2>/dev/null" C-m \; display-message "Restarting server..."
#bind-key T run-shell "touch /tmp/uwsgi/morozov-streams.reload" \; display-message "Restarting Karina..."
## Powerline
#run-shell "powerline-daemon -q"
#source "/usr/lib/python2.6/site-packages/powerline/bindings/tmux/powerline.conf"