-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
executable file
·149 lines (141 loc) · 4.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
set-option -g assume-paste-time 1
set-option -g base-index 1
set-option -g bell-action any
### Removed invalid options with ###
###set-option -g bell-on-alert off
set-option -g default-command ""
set-option -g default-shell "/bin/bash"
set-option -g default-terminal "screen-256color"
set-option -g destroy-unattached off
set-option -g detach-on-destroy on
set-option -g display-panes-active-colour red
set-option -g display-panes-colour blue
set-option -g display-panes-time 1000
set-option -g display-time 750
set-option -g history-limit 2000
set-option -g lock-after-time 0
set-option -g lock-command "vlock"
#set-option -g lock-server on
###set-option -g message-attr none
###set-option -g message-bg yellow
###set-option -g message-command-attr none
###set-option -g message-command-bg black
###set-option -g message-command-fg yellow
#set-option -g message-command-style fg=yellow,bg=black
###set-option -g message-fg black
set-option -g message-limit 20
#set-option -g message-style fg=black,bg=yellow
set-option -g mouse on
###set-option -g mouse-resize-pane on
###set-option -g mouse-select-pane on
###set-option -g mouse-select-window on
###set-option -g mouse-utf8 on
###set-option -g pane-active-border-bg default
###set-option -g pane-active-border-fg green
#set-option -g pane-active-border-style fg=green
###set-option -g pane-border-bg default
###set-option -g pane-border-fg default
#set-option -g pane-border-style default
set-option -g prefix C-a
set-option -g prefix2 none
set-option -g renumber-windows off
set-option -g repeat-time 500
###set-option -g set-remain-on-exit off
set-option -g set-titles off
set-option -g set-titles-string "#S:#I:#W - "#T""
set-option -g status on
###set-option -g status-attr none
set-option -g status-bg default
set-option -g status-fg white
set-option -g status-interval 15
set-option -g status-justify centre
set-option -g status-keys emacs
set-option -g status-left '#[fg=red] #(tmux list-clients |wc -l) #[fg=green][ #[fg=black,bright]#h #[fg=green,nobright]][#[default]'
###set-option -g status-left-attr none
###set-option -g status-left-bg default
###set-option -g status-left-fg default
set-option -g status-left-length 30
#set-option -g status-left-style default
set-option -g status-position bottom
set-option -g status-right '#[fg=green]][ #[fg=black,bright]#(date +"%m/%d %H:%M") #[fg=green,nobright]]#[fg=default]'
#set-option -g status-right "#[fg=green]][ #[fg=black,bright]#(date +"%m/%d %H:%M") #[fg=green,nobright]]#[fg=default]"
###set-option -g status-right-attr none
###set-option -g status-right-bg default
###set-option -g status-right-fg default
###set-option -g status-right-length 20
set-option -g status-right-style default
set-option -g status-style fg=white
#set-option -g status-utf8 on
set-option -g terminal-overrides "*256col*:colors=256,xterm*:XT:Ms=\E]52;%p1%s;%p2%s\007:Cs=\E]12;%p1%s\007:Cr=\E]112\007:Ss=\E[%p1%d q:Se=\E[2 q,screen*:XT"
set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
set-option -g visual-activity off
set-option -g visual-bell off
#set-option -g visual-content off
set-option -g visual-silence off
set-option -g word-separators " -_@"
#set-option remain-on-exit on
# set window split
bind-key v split-window -h
bind-key h split-window -v
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# initialize sessions
bind A source-file ~/.tmux/main
bind B source-file ~/.tmux/monitoring
#set inactive/active window styles
set -g window-style 'fg=colour247,bg=colour236'
set -g window-active-style 'fg=colour250,bg=black'
# set the pane border colors
set -g pane-border-style 'fg=colour235,bg=colour238'
set -g pane-active-border-style 'fg=colour51,bg=colour236'
##### SESSIONS #####
#new-session -s main -d
#send-keys 'sysinfo' C-m
#split-window -d -t 0 -h -p 15
#split-window -d -t 1 -v -p 23
#split-window -d -t 2 -v -p 50
#split-window -d -t 3 -v
#send-keys -t 2 'vpnstart' C-m
#send-keys -t 2 'xclock &' C-m
#send-keys -t 1 '#chbg' C-m
#send-keys -t 1 'pal' C-m
#send-keys -t 2 'doMagic' C-m
#send-keys -t 3 'pal' C-m
#send-keys -t 2 'calloop' enter C-l
#new-session -s monitoring -n htop
#send-keys -l 'htop'
#send-keys ENTER
#new-window -n bmon
#send-keys -l 'bmon'
#send-keys ENTER
#new-window -n iftop
#send-keys -l '#iftop must be run as sudo'
#send-keys ENTER
#new-window -n iotop
#send-keys -l '#iotop must be run as sudo'
#send-keys ENTER
#new-window -n nethogs
#send-keys -l '#nethogs must be run as sudo'
#send-keys ENTER
#new-window -n ethtool
#send-keys -l 'ethtool'
#send-keys ENTER
#new-window -n tcpdump
#send-keys -l '#tcpdump must be run as sudo, -i any for any interface'
#send-keys ENTER
#new-window -n traceroute
#send-keys -l 'traceroute google.com'
#send-keys ENTER
#new-window -n mtr
#send-keys -l 'mtr google.com'
#send-keys ENTER
#new-window -n nmon
#send-keys -l 'nmon'
#send-keys ENTER
#new-window -n vmstat
#send-keys -l 'vmstat'
#send-keys ENTER
#new-window -n vnstat
#send-keys -l 'vnstat'
#send-keys ENTER