1# Id: n-marriott.conf,v 1.11 2009-11-24 19:03:59 nicm Exp
2#
3# By Nicholas Marriott. Public domain.
4
5# Default global options.
6set -g status-bg green
7set -g status-right "%H:%M" # %d-%b-%y
8set -g bell-action none
9set -g lock-after-time 1800
10
11# Default global window options.
12setw -g remain-on-exit on
13setw -g window-status-current-attr "underscore"
14#setw -g xterm-keys on
15
16# Prefix key.
17set -g prefix C-a
18unbind C-b
19bind C-a send-prefix
20
21# Keys to switch session.
22bind Q switchc -t0
23bind W switchc -t1
24bind E switchc -t2
25
26# Other key bindings.
27bind F1 selectw -t:10
28bind F2 selectw -t:11
29bind F3 selectw -t:12
30bind F4 selectw -t:13
31bind F5 selectw -t:14
32bind F6 selectw -t:15
33bind F7 selectw -t:16
34bind F8 selectw -t:17
35bind F9 selectw -t:18
36bind F10 selectw -t:19
37bind F11 selectw -t:20
38bind F12 selectw -t:21
39
40bind m setw monitor-activity
41
42bind y setw force-width 81
43bind u setw force-width 0
44
45bind -n F1 run-shell 'mpc toggle >/dev/null 2>&1'
46bind -n F2 run-shell 'mpc'
47bind -n F3 run-shell 'mpc prev >/dev/null 2>&1'
48bind -n F4 run-shell 'mpc next >/dev/null 2>&1'
49bind -n F5 run-shell 'mpc volume -5 >/dev/null 2>&1'
50bind -n F6 run-shell 'mpc volume +5 >/dev/null 2>&1'
51
52# Hide and show window name from status line
53bind '-' setw window-status-format '#I'\; setw window-status-current-format '#I'
54bind '+' setw window-status-format '#I:#W#F'\; setw window-status-current-format '#I:#W#F'
55
56# First session.
57new -d -s0 -nirssi 'exec ssh -t natalya exec sh ~/bin/tmux-start'
58setw -t0:0 monitor-activity on
59setw -t0:0 aggressive-resize on
60set -t0 status-bg green
61neww -d -ntodo 'exec emacs ~/TODO'
62setw -t0:1 aggressive-resize on
63neww -d -ntodo2 'exec emacs ~/TODO2'
64setw -t0:2 aggressive-resize on
65neww -d -nncmpc 'exec ncmpc -f ~/.ncmpc.conf'
66setw -t0:3 aggressive-resize on
67neww -d -nmutt 'exec mutt'
68setw -t0:4 aggressive-resize on
69neww -d
70neww -d
71neww -d
72neww -d
73neww -d
74neww -d
75neww -d
76neww -d
77neww -d
78neww -d
79neww -d
80neww -d
81
82# Second session.
83new -d -s1
84set -t1 status-bg cyan
85linkw -dk -t0 -s0:0
86linkw -dk -t1 -s0:1
87linkw -dk -t2 -s0:2
88linkw -dk -t3 -s0:3
89linkw -dk -t4 -s0:4
90neww -d
91neww -d
92neww -d
93neww -d
94neww -d
95neww -d
96
97# Third session.
98new -d -s2
99set -t2 status-bg yellow
100linkw -dk -t0 -s0:0
101linkw -dk -t1 -s0:1
102linkw -dk -t2 -s0:2
103linkw -dk -t3 -s0:3
104linkw -dk -t4 -s0:4
105neww -d
106neww -d
107neww -d
108neww -d
109neww -d
110neww -d
111