-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
158 lines (130 loc) · 3.92 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
150
151
152
153
154
155
156
157
158
#change the C-b to the screen C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set -g status on
# Scroll History
set -g history-limit 1000000
# THEME
#set -g status-bg blue
#set -g status-fg white
#setw -g window-status-current-bg white
#setw -g window-status-current-attr bold
#set -g status-interval 60
#set -g status-left-length 30
#set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]'
#set -g status-right '#[fg=red]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[black]'
# set correct term
set -g default-terminal screen-256color
## Terminal emulator window title
#set -g set-titles on
#set -g set-titles-string '#S:#I.#P #W'
#
## Status Bar
#set -g status-bg black
#set -g status-fg white
#set -g status-interval 1
#set -g status-left ''
#set -g status-right "#(tmux ls | sed -e 's/windows.*//g' -e 's/ //g' | perl -i -p -e 's/\n/ /')$#[fg=cyan]#S" # '#[fg=yellow]#[default]' #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default]'
#
## Notifying if other windows has activities
#setw -g monitor-activity off
#set -g visual-activity off
## set-option -g visual-bell off
#set-option -g bell-action any
#set-option -g status-utf8 on
#
## Highlighting the active window in status bar
#setw -g window-status-current-bg black
#setw -g window-status-current-fg yellow
##setw -g window-status-alert-bg black
##setw -g window-status-alert-fg cyan # backwards
#
## Clock
#setw -g clock-mode-colour green
#setw -g clock-mode-style 24
# Set the default terminal mode to 256color mode
# START:termcolor
set -g default-terminal "screen-256color"
# END:termcolor
# enable activity alerts
#START:activity
setw -g monitor-activity on
set -g visual-activity on
#END:activity
# set the status line's colors
# START:statuscolor
set -g status-fg white
set -g status-bg black
# END:statuscolor
# set the color of the window list
# START:windowstatuscolor
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
# END:windowstatuscolor
# set colors for the active window
# START:activewindowstatuscolor
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# END:activewindowstatuscolor
# pane colors
# START:panecolors
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
# END:panecolors
# Command / message line
# START:cmdlinecolors
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# END:cmdlinecolors
# Status line left side
# START:statusleft
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
# END:statusleft
#START:utf8
set -g status-utf8 on
#END:utf8
# Status line right side
# 15% | 28 Nov 18:15
# START: statusright
set -g status-right "#[fg=cyan]%d %b %R"
# END:statusright
# Update the status bar every sixty seconds
# START:updateinterval
set -g status-interval 60
# END:updateinterval
# Center the window list
# START:centerwindowlist
set -g status-justify centre
# END:centerwindowlist
bind-key C-t last-window
setw -g monitor-activity on
set -g visual-activity on
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Make mouse useful in copy mode
setw -g mode-mouse on
# Allow mouse to select which pane to use
#set -g mouse-select-pane on
# Allow mouse to select window
#set mouse-select-window
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right
#set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
# Set ability to capture on start and restore on exit window data when running an application
setw -g alternate-screen on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50
#mapping for split windows
#vertical
bind - split-window -v
#horizontal
bind | split-window -h