summaryrefslogtreecommitdiffstats
path: root/tmux.conf
blob: 99bb6e7905f1c3d8491ee513d643034a6b84f596 (plain)
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
set -g base-index 1

set -g status-bg '#400040'
set -g status-fg '#ffffff'

set -g status-left '#h * #(whoami) | #[fg=#ffc000]%H:%M %a#[default] |'
set -g status-left-length 40

set -g status-right ''

set -g window-status-current-bg '#8000ff'

#setw -g on-destroy 'run-shell "let i=1; for x in \$(tmux list-windows -F \"#{window_index}:#{window_active}\"); do w=\$(echo \$x | cut -d: -f 1); a=\$(echo \$x | cut -d: -f 2); if [ \$i -ne \$w ]; then if [ \$a -eq 1 ]; then active=; else active=-d; fi; tmux move-window \$active -s :\$w -t :\$i; fi; let i++; done"'

bind-key -n C-T new-window -a
bind-key -n M-T run-shell 'tmux_new_window'
bind-key -n C-ppage prev
bind-key -n C-npage next
bind-key -n C-M-ppage swap-window -t :-
bind-key -n C-M-npage swap-window -t :+
bind-key -n 'M-`' copy-mode
bind-key -n C-F4 confirm-before -p "kill-window #W? (y/n)" kill-window

bind-key -n M-1 select-window -t :1
bind-key -n M-2 select-window -t :2
bind-key -n M-3 select-window -t :3
bind-key -n M-4 select-window -t :4
bind-key -n M-5 select-window -t :5
bind-key -n M-6 select-window -t :6
bind-key -n M-7 select-window -t :7
bind-key -n M-8 select-window -t :8
bind-key -n M-9 select-window -t :9
bind-key -n M-0 select-window -t :10
bind-key -n 'M-!' select-window -t :11
bind-key -n 'M-@' select-window -t :12
bind-key -n 'M-#' select-window -t :13
bind-key -n 'M-$' select-window -t :14
bind-key -n 'M-%' select-window -t :15
bind-key -n 'M-^' select-window -t :16
bind-key -n 'M-&' select-window -t :17
bind-key -n 'M-*' select-window -t :18
bind-key -n 'M-(' select-window -t :19
bind-key -n 'M-)' select-window -t :20