-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
177 lines (129 loc) · 4.34 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
173
174
175
176
177
#Bra Tutorial: http://www.jeffstory.org/wordpress/?p=132
# To attach to running session:
# tmux attach -d
# Most in this config was inspired (=copied) from:
#-Arch-wiki
#-Gentoo-wiki
#-http://bitbucket.org/jasonwryan/workstation
#
#additional resources:
#http://cheasy.org/tmux.pdf
#http://jwcxz.com/other/tmux/tmux.conf
#http://blog.jwcxz.com/?p=547
#KEYBINDINGS:
#============
# more intuitive keybindings for splitting
unbind %
bind-key h split-window -v
unbind '"'
bind-key v split-window -h
# open a man page in new window
bind m command-prompt "split-window 'exec man %%'"
# quick view of processes
bind '~' split-window "exec htop"
# more like stumpwm, tmux:pane = stumpwm:frame
unbind f
bind-key f display-panes
#... and need to find a new home for search fucntion:
#bind-key F find-window [-t target-window] match-string
# confirm before killing a window or the server
unbind &
bind-key k confirm kill-window
bind-key K confirm kill-server
# bind copy mode to escape key:
unbind [
bind-key Escape copy-mode
#unbind s
#bind-key s attach-session
#"abort" does not exis"
#bind-key C-g abort
# ctrl+left/right cycles through windows (not panes)
#bind-key right next
#bind-key left prev
# toggle statusbar on/off
bind-key b set-option status
# Reload source file (doesn't work?)
bind-key r source-file ~/.tmux.conf
#APPEARANCE
#==========
# panes:
set-option -g pane-border-style fg=white
set-option -g pane-border-style bg=default
# border colours (most excellent!)
set-option -g pane-active-border-style fg=green
set-option -g pane-active-border-style bg=default
# clock-mode
set-window-option -g clock-mode-colour cyan
set-window-option -g clock-mode-style 24
# pane border
set-option -g pane-active-border-style fg=brightgreen
# message text
set-option -g message-style fg=brightred,bg=black
# pane number display
set-option -g display-panes-active-colour blue
set-option -g display-panes-colour brightred
# bell
set-window-option -g window-status-bell-style fg=black,bg=red
# default statusbar colors (bright = bold)
set-option -g status-fg white
set-option -g status-bg blue
# other statusbar configs:
set-option -g status-interval 5
set-option -g status-justify right
# active window title colors (default: white, default, bright (= bold))
set-window-option -g window-status-current-style fg=white
set-window-option -g window-status-current-style bg=default
# set-window-option -g window-status-current-style attr=bright
# window title colors (default: white, default, dim (= non-bold))
set-window-option -g window-status-style fg=white
set-window-option -g window-status-style bg=default
# set-window-option -g window-status-attr dim
# default is "on"
set-option -g status on
# center align window list
set-option -g status-justify centre
# what is to be shown to the left on the status bar
set-option -g status-left '#[fg=magenta]» #[fg=magenta,bold]#T#[default]'
# what is to be shown to the right on the status bar
set-option -g status-right '#[fg=magenta]Up #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #[fg=black]• #[fg=magenta,bright]%d/%m %H:%M#[default]'
#OTHER
#=====
# start window indexing at one instead of zero
set -g base-index 1
# basic global settings:
set-option -g default-shell /bin/zsh
set-option -g status-keys emacs
set-window-option -g mode-keys emacs
# set-window-option -g mode-mouse on
# set-option -g mouse-select-pane on
#set -g default-terminal screen-256color
set-option -g history-limit 524288
# enable wm (e.g. fluxbox) window titles:
set-option -g set-titles on
set-option -g set-titles-string "tmux:#I [ #W ]"
# H Host,
# I Current window index
# P Current pane index
# S Session name
# T Current window title
# W Current window name
# # A literal ‘#’
#lock entire session, and all clients (seconds)
# set-option -g lock-server on
set-option -g lock-after-time 1800
#set-option -g lock-command 'cmatrix -b -u 9'
#Things to test
#==============
#doesn't work? To scroll up/down with shift-PgUp, etc.:
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# moving and swapping:
# bind-key N swap-pane -D
# bind-key P swap-pane -U
# window title:
# set-option -g set-titles on
# set-option -g set-titles-string '[#S:#I.#P] #W'
# set-window-option -g automatic-rename on
# status bar:
# set-option -g visual-activity on
# set-window-option -g monitor-activity on
# set-window-option -g window-status-current-fg white