2009-10-25 21:45:26 +00:00
|
|
|
# $Id: n-marriott.conf,v 1.10 2009-10-25 21:45:26 nicm Exp $
|
|
|
|
#
|
|
|
|
# By Nicholas Marriott. Public domain.
|
|
|
|
|
2008-06-04 18:26:29 +00:00
|
|
|
# Default global options.
|
2008-12-08 16:19:51 +00:00
|
|
|
set -g status-bg green
|
2009-10-25 21:45:26 +00:00
|
|
|
set -g status-right "%H:%M" # %d-%b-%y
|
2008-12-08 16:19:51 +00:00
|
|
|
set -g bell-action none
|
2009-01-14 22:36:07 +00:00
|
|
|
set -g lock-after-time 1800
|
2008-12-08 16:19:51 +00:00
|
|
|
|
|
|
|
# Default global window options.
|
2009-10-25 21:45:26 +00:00
|
|
|
setw -g remain-on-exit on
|
|
|
|
setw -g window-status-current-attr "underscore"
|
2008-06-02 20:52:43 +00:00
|
|
|
|
2008-06-04 18:26:29 +00:00
|
|
|
# Prefix key.
|
2009-01-14 22:36:07 +00:00
|
|
|
set -g prefix C-a
|
|
|
|
unbind C-b
|
|
|
|
bind C-a send-prefix
|
|
|
|
|
2008-06-04 18:26:29 +00:00
|
|
|
# Keys to switch session.
|
2009-10-25 21:45:26 +00:00
|
|
|
bind Q switchc -t0
|
|
|
|
bind W switchc -t1
|
|
|
|
bind E switchc -t2
|
2008-06-02 20:52:43 +00:00
|
|
|
|
2008-06-04 18:26:29 +00:00
|
|
|
# Other key bindings.
|
2009-10-25 21:45:26 +00:00
|
|
|
bind F1 selectw -t:10
|
|
|
|
bind F2 selectw -t:11
|
|
|
|
bind F3 selectw -t:12
|
|
|
|
bind F4 selectw -t:13
|
|
|
|
bind F5 selectw -t:14
|
|
|
|
bind F6 selectw -t:15
|
|
|
|
bind F7 selectw -t:16
|
|
|
|
bind F8 selectw -t:17
|
|
|
|
bind F9 selectw -t:18
|
|
|
|
bind F10 selectw -t:19
|
|
|
|
bind F11 selectw -t:20
|
|
|
|
bind F12 selectw -t:21
|
2008-06-17 06:18:44 +00:00
|
|
|
|
|
|
|
bind m setw monitor-activity
|
|
|
|
|
|
|
|
bind y setw force-width 81
|
|
|
|
bind u setw force-width 0
|
2008-06-02 20:52:43 +00:00
|
|
|
|
2009-10-25 21:45:26 +00:00
|
|
|
bind -n F1 run-shell 'mpc toggle >/dev/null 2>&1'
|
|
|
|
bind -n F2 run-shell 'mpc'
|
|
|
|
bind -n F3 run-shell 'mpc prev >/dev/null 2>&1'
|
|
|
|
bind -n F4 run-shell 'mpc next >/dev/null 2>&1'
|
|
|
|
bind -n F5 run-shell 'mpc volume -5 >/dev/null 2>&1'
|
|
|
|
bind -n F6 run-shell 'mpc volume +5 >/dev/null 2>&1'
|
2009-01-14 22:36:07 +00:00
|
|
|
|
2009-04-20 19:25:58 +00:00
|
|
|
# First session.
|
2009-10-25 21:45:26 +00:00
|
|
|
new -d -s0 -nirssi 'exec ssh -t natalya exec sh ~/bin/tmux-start'
|
2008-06-17 06:18:44 +00:00
|
|
|
setw -t0:0 monitor-activity on
|
|
|
|
setw -t0:0 aggressive-resize on
|
|
|
|
set -t0 status-bg green
|
2008-06-03 18:15:57 +00:00
|
|
|
neww -d -ntodo 'exec emacs ~/TODO'
|
2009-01-14 22:36:07 +00:00
|
|
|
setw -t0:1 aggressive-resize on
|
2009-10-25 21:45:26 +00:00
|
|
|
neww -d -ntodo2 'exec emacs ~/TODO2'
|
2009-01-14 22:36:07 +00:00
|
|
|
setw -t0:2 aggressive-resize on
|
2009-10-25 21:45:26 +00:00
|
|
|
neww -d -nncmpc 'exec ncmpc -f ~/.ncmpc.conf'
|
2009-01-14 22:36:07 +00:00
|
|
|
setw -t0:3 aggressive-resize on
|
2009-10-25 21:45:26 +00:00
|
|
|
neww -d -nmutt 'exec mutt'
|
|
|
|
setw -t0:4 aggressive-resize on
|
2008-06-03 18:15:57 +00:00
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
2009-01-18 14:46:04 +00:00
|
|
|
neww -d
|
|
|
|
neww -d
|
2008-06-02 20:52:43 +00:00
|
|
|
|
2008-06-04 18:26:29 +00:00
|
|
|
# Second session.
|
2008-06-02 20:52:43 +00:00
|
|
|
new -d -s1
|
2008-06-17 06:18:44 +00:00
|
|
|
set -t1 status-bg cyan
|
|
|
|
linkw -dk -t0 -s0:0
|
2009-01-14 22:36:07 +00:00
|
|
|
linkw -dk -t1 -s0:1
|
|
|
|
linkw -dk -t2 -s0:2
|
|
|
|
linkw -dk -t3 -s0:3
|
2009-10-25 21:45:26 +00:00
|
|
|
linkw -dk -t4 -s0:4
|
2009-01-14 22:36:07 +00:00
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
2008-06-03 18:15:57 +00:00
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
2008-06-02 20:52:43 +00:00
|
|
|
|
2008-06-04 18:26:29 +00:00
|
|
|
# Third session.
|
2008-06-02 20:52:43 +00:00
|
|
|
new -d -s2
|
2008-06-17 06:18:44 +00:00
|
|
|
set -t2 status-bg yellow
|
|
|
|
linkw -dk -t0 -s0:0
|
2009-01-14 22:36:07 +00:00
|
|
|
linkw -dk -t1 -s0:1
|
|
|
|
linkw -dk -t2 -s0:2
|
|
|
|
linkw -dk -t3 -s0:3
|
2009-10-25 21:45:26 +00:00
|
|
|
linkw -dk -t4 -s0:4
|
2009-01-14 22:36:07 +00:00
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|
2008-06-03 18:15:57 +00:00
|
|
|
neww -d
|
|
|
|
neww -d
|
|
|
|
neww -d
|