-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
172 lines (129 loc) · 4.04 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#---------------------------------------------------------------
## ~/.tmux.conf ##
#---------------------------------------------------------------
# Set prefix key to ctrl+a
unbind C-b
set -g prefix C-a
unbind C-h
# Reload config without killing server
bind R source-file ~/.tmux.conf
# More intuitive keybindings for splitting
unbind %
unbind '"'
bind u split-window -v
bind i split-window -h
# Set vi keys
#unbind [
#bind Escape copy-mode
set-window-option -g mode-keys vi
# Reload config file
bind F12 source-file ~/.tmux.conf
# Toggle last window like screen
#bind-key C-b last-window
# Kill a window or the server
bind-key x kill-window
bind-key X kill-server
# Toggle statusbar
bind-key b set-option status
# Urxvt tab like window switching (-n: no prior escape seq)
unbind c
bind-key -n S-down new-window
bind-key -n S-right next
bind-key -n S-left prev
# Resize and close pane
bind h resize-pane -L
bind j resize-pane -D
bind k resize-pane -U
bind l resize-pane -R
bind c kill-pane
# Open a man page in new window
bind m command-prompt "new-window 'exec man %%'"
# Quick view of processes
bind 'p' split-window -v "exec htop"
# Quick music
unbind n
unbind 'C-n'
bind 'n' split-window -v "exec ncmpcpp"
bind 'C-n' split-window -h "exec ncmpcpp"
# Quick chat
unbind w
unbind 'C-w'
bind 'w' split-window -v "exec weechat-curses"
bind 'C-w' split-window -h "exec weechat-curses"
# Quick file-manager
unbind f
unbind 'C-f'
bind 'f' split-window -v "exec ranger"
bind 'C-f' split-window -h "exec ranger"
# Scrollback buffer n lines
set -g history-limit 5000
# Listen for activity on all windows
set -g bell-action any
# On-screen time for display-panes in ms
set -g display-panes-time 2000
# Start window indexing at one instead of zero
set -g base-index 1
# Enable wm window titles
set -g set-titles on
# Disable auto renaming
setw -g automatic-rename on
# Border colours
set -g pane-active-border-bg default
set -g pane-active-border-fg black
# UTF8
setw -g utf8 on
set -g status-utf8 on
# Wm window title string (uses statusbar variables)
set -g set-titles-string "#T"
# Source session
bind I source-file ~/.tmux.sessions
# Mouse select pane
#set -g mouse-select-pane on
#set -g mode-mouse on
# Statusbar
set -g status-interval 1
#set -g status-justify centre # center align window list
set -g status-right-length 50
#set -g status-right '#[fg=colour2]#(cut -d " " -f 1-3 /proc/loadavg) #[fg=colour12]| #[fg=colour9]%a %I:%M %p'
set -g status-right ''
set -g status-left ' >'
set -g status-left-length 20
#set -g status-right '#[fg=blue]%H:%M:%S'
#set -g status-left '#[fg=green][#[fg=cyan]%H:%M:%S#]#[fg=cyan]#]#[fg=green]]'
#set -g status-right '#[fg=white]Up#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #[fg=black]• #[fg=white]#(cut -d " " -f 1-4 /proc/loadavg)'
#set -g status-right '#[fg=blue]Up#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",")#[fg=black] • #[fg=blue]#(cut -d " " -f 1-4 /proc/loadavg)'
#set -g status-right '#[fg=green]%H:%M:%S'
# Default statusbar colors
set -g status-fg black
set -g status-bg default
#set -g status-attr normal
# 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 bold
# Active window title colors
set-window-option -g window-status-current-fg brightblue
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr none
#set-window-option -g window-status-alert-attr bright
# Command/message line colors
set -g message-fg yellow
set -g message-bg default
set -g message-attr none
# Pane borders colors
set-option -g pane-border-fg black
set-option -g pane-border-bg default
# Move among windows
bind-key -n C-left select-pane -t :.-
bind-key -n C-right select-pane -t :.+
# Set window notifications
setw -g monitor-activity off
set -g visual-activity off
# Set terminal
#set-option -g default-terminal "rxvt-256color"
# Set clock
setw -g clock-mode-colour yellow
setw -g clock-mode-style 24
# Buffer
bind -r d copy-mode
bind -r p paste-buffer