2008-06-04 20:26:29 +02:00
|
|
|
# Default global options.
|
2008-06-02 22:52:43 +02:00
|
|
|
set status-bg green
|
|
|
|
set default-command "exec /bin/ksh -l"
|
|
|
|
set bell-action none
|
|
|
|
|
2008-06-04 20:26:29 +02:00
|
|
|
# Prefix key.
|
2008-06-02 22:52:43 +02:00
|
|
|
set prefix ^A
|
|
|
|
unbind ^B
|
|
|
|
bind ^A send-prefix
|
|
|
|
|
2008-06-04 20:26:29 +02:00
|
|
|
# Keys to switch session.
|
2008-06-17 08:18:44 +02:00
|
|
|
bind q switch -t0
|
|
|
|
bind Q switch -t0
|
|
|
|
bind w switch -t1
|
|
|
|
bind W switch -t1
|
|
|
|
bind e switch -t2
|
|
|
|
bind E switch -t2
|
2008-06-02 22:52:43 +02:00
|
|
|
|
2008-06-04 20:26:29 +02:00
|
|
|
# Other key bindings.
|
2008-06-02 22:52:43 +02:00
|
|
|
bind i list-windows
|
2008-06-17 08:18:44 +02:00
|
|
|
bind I list-windows
|
|
|
|
|
|
|
|
bind m setw monitor-activity
|
|
|
|
bind M setw monitor-activity
|
|
|
|
|
|
|
|
bind y setw force-width 81
|
|
|
|
bind Y setw force-width 81
|
|
|
|
bind u setw force-width 0
|
|
|
|
bind U setw force-width 0
|
2008-06-02 22:52:43 +02:00
|
|
|
|
2008-06-04 20:26:29 +02:00
|
|
|
# First session.
|
2008-06-03 20:15:57 +02:00
|
|
|
new -d -s0 -nirssi 'screen -DRS irssi irssi' # safe from pkill tmux ;-)
|
2008-06-17 08:18:44 +02:00
|
|
|
setw -t0:0 monitor-activity on
|
|
|
|
setw -t0:0 aggressive-resize on
|
|
|
|
set -t0 status-bg green
|
|
|
|
set -t0 status-left '[0]'
|
2008-06-03 20:15:57 +02:00
|
|
|
neww -d -ntodo 'exec emacs ~/TODO'
|
|
|
|
neww -d -nncmpc
|
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
2008-06-02 22:52:43 +02:00
|
|
|
|
2008-06-04 20:26:29 +02:00
|
|
|
# Second session.
|
2008-06-02 22:52:43 +02:00
|
|
|
new -d -s1
|
2008-06-17 08:18:44 +02:00
|
|
|
set -t1 status-bg cyan
|
|
|
|
set -t1 status-left '[1]'
|
|
|
|
linkw -dk -t0 -s0:0
|
2008-06-03 20:15:57 +02:00
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
2008-06-02 22:52:43 +02:00
|
|
|
|
2008-06-04 20:26:29 +02:00
|
|
|
# Third session.
|
2008-06-02 22:52:43 +02:00
|
|
|
new -d -s2
|
2008-06-17 08:18:44 +02:00
|
|
|
set -t2 status-bg yellow
|
|
|
|
set -t2 status-left '[2]'
|
|
|
|
linkw -dk -t0 -s0:0
|
2008-06-03 20:15:57 +02:00
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|