-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
83 lines (70 loc) · 2.71 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
#
# Global settings
#
#
# misc options
set-option -g default-terminal "screen-256color"
set-option -g history-limit 10000
set-option -s escape-time 0
set-window-option -g allow-rename off
set-window-option -g automatic-rename off
# add prefix key of ctrl-a
set -g prefix2 C-a
bind C-a send-prefix -2
# status
set-option -g status on
set-option -g status-right ""
set-option -g status-interval 2
set-option -g status-utf8 on
set-option -g status-justify "left"
set-option -g status-left-length 40
set-option -g status-right-length 90
set-option -g status-left "#(/opt/git/powertmux/powertmux.sh left show)"
set-option -g status-right "#(/opt/git/powertmux/powertmux.sh right show)"
set-option -g status-keys vi
set-option -g display-time 2000
# color
set-option -g status-fg colour136
set-option -g status-bg colour236
set-option -g status-attr default
set-window-option -g window-status-attr none
set-window-option -g window-status-bg colour238
set-window-option -g window-status-fg colour136
set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour236,reverse]"
set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore] #I #[fg=colour240,reverse]#[default]#[bg=colour240]#[nounderscore] #[default]#[fg=colour231,bg=colour240]#W#[nounderscore] #[fg=colour236,reverse]"
set-window-option -g window-status-current-attr none
set-window-option -g window-status-current-bg colour33
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-format "#[fg=colour236]#[default,fg=colour231,bold] #I #[default,fg=colour236,reverse]"
set-window-option -g window-status-current-format "#[fg=colour236]#[default,bold] #I #[fg=colour117,reverse]#[default]#[bg=colour117] #W #[fg=colour236,reverse]"
set-option -g pane-border-fg colour235
set-option -g pane-active-border-fg colour240
set-option -g message-bg colour235
set-option -g message-fg colour166
set-option -g display-panes-active-colour colour33
set-option -g display-panes-colour colour166
# reload settings
bind-key R \
source-file /etc/tmux.conf \;\
display "Reloaded configuration"
# handy binds
bind-key _ split-window -v
bind-key | split-window -h
bind-key "`" split-window "exec htop"
bind-key / command-prompt "split-window 'exec man %%'"
#bind-key s set status
#bind-key "'" choose-window
#bind-key '"' choose-session
# Mouse mode toggle
bind M \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
bind m \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'