summaryrefslogtreecommitdiffstats
authornicm <nicm>2008-06-02 20:52:43 (GMT)
committer nicm <nicm>2008-06-02 20:52:43 (GMT)
commit195f66e80d4be7f31587217ae28351e1ba53b995 (patch) (side-by-side diff)
tree5166ec35ecf767fc562d8fd401dd6b45d84fd87d
parent677d554b90fbaab6c39cfe27d551229faf1b4a56 (diff)
downloadtmux-old-195f66e80d4be7f31587217ae28351e1ba53b995.zip
tmux-old-195f66e80d4be7f31587217ae28351e1ba53b995.tar.gz
tmux-old-195f66e80d4be7f31587217ae28351e1ba53b995.tar.bz2
Remove old examples, add new.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--examples/mxey-start-tmux.sh10
-rw-r--r--examples/n-marriott.conf41
-rw-r--r--examples/n-marriott.sh13
-rw-r--r--examples/nicm-start-tmux.sh57
4 files changed, 54 insertions, 67 deletions
diff --git a/examples/mxey-start-tmux.sh b/examples/mxey-start-tmux.sh
deleted file mode 100644
index fb06227..0000000
--- a/examples/mxey-start-tmux.sh
+++ b/dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-tmux attach
-if [[ $? = 1 ]]; then
- tmux new-session -d -smain 'exec irssi'
- tmux -smain set prefix '^H'
- tmux -smain new-window -d -nherrie 'exec sudo herrie -c /home/mxey/etc/herrie/config'
- tmux -smain new-window -d 'exec lynx'
- exec tmux -smain attach
-fi
diff --git a/examples/n-marriott.conf b/examples/n-marriott.conf
new file mode 100644
index 0000000..5352790
--- a/dev/null
+++ b/examples/n-marriott.conf
@@ -0,0 +1,41 @@
+set status-bg green
+set default-command "exec /bin/ksh -l"
+set bell-action none
+
+set prefix ^A
+unbind ^B
+bind ^A send-prefix
+
+bind q switch 0
+bind Q switch 0
+bind w switch 1
+bind W switch 1
+bind e switch 2
+bind E switch 2
+
+bind I list-windows
+bind i list-windows
+
+# safe from pkill tmux ;-)
+new -d -s0 -nirssi 'screen -RS irssi irssi'
+neww -s0 -d -ntodo 'exec emacs ~/TODO'
+neww -s0 -d -nncmpc
+neww -s0 -d
+neww -s0 -d
+neww -s0 -d
+neww -s0 -d
+neww -s0 -d
+neww -s0 -d
+neww -s0 -d
+
+new -d -s1
+linkw -dk -s1 -i0 0 0
+neww -s1 -d
+neww -s1 -d
+neww -s1 -d
+
+new -d -s2
+linkw -dk -s2 -i0 0 0
+neww -s2 -d
+neww -s2 -d
+neww -s2 -d
diff --git a/examples/n-marriott.sh b/examples/n-marriott.sh
new file mode 100644
index 0000000..e1d8ecc
--- a/dev/null
+++ b/examples/n-marriott.sh
@@ -0,0 +1,13 @@
+#!/bin/sh -x
+
+[ ! -z "$TMUX" ] && exit
+
+# I alias this script to "session" in .profile and use it to reconnect to
+# the main session (0) on my main tmux server.
+
+SOCKET=/tmp/tmux-1000-main
+
+TMUX="tmux -S $SOCKET"
+
+$TMUX has -s0 2>/dev/null || $TMUX start
+$TMUX attach -d -s0
diff --git a/examples/nicm-start-tmux.sh b/examples/nicm-start-tmux.sh
deleted file mode 100644
index 1389252..0000000
--- a/examples/nicm-start-tmux.sh
+++ b/dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh -x
-
-[ ! -z "$TMUX" ] && exit
-
-SOCKET=/tmp/tmux-1000-main
-
-TMUX="tmux -S $SOCKET"
-
-if ! $TMUX -s0 has 2>/dev/null; then
- # Session 0
- $TMUX new -d -s0 -nyelena 'exec ssh yelena' # 0
-
- # These needs to be set before starting shells...
- $TMUX set default-command "exec $SHELL -l"
- $TMUX set history-limit 10000
-
- $TMUX -s0 neww -d -ntodo 'exec emacs ~/TODO' # 1
- $TMUX -s0 neww -d -nncmpc # 2
- $TMUX -s0 neww -d & # 3
- $TMUX -s0 neww -d & # 4
- $TMUX -s0 neww -d & # 5
- $TMUX -s0 neww -d & # 6
- $TMUX -s0 neww -d & # 7
- $TMUX -s0 neww -d & # 8
- $TMUX -s0 neww -d & # 9
-
- # Other sessions
- for i in 1 2; do
- # Window 0 is linked from session 0
- $TMUX new -d -s$i
- $TMUX -s$i linkw -dki0 0 0
-
- $TMUX -s$i neww -d &
- $TMUX -s$i neww -d &
- done
-
- # Rebind prefix key
- $TMUX set prefix ^A &
- $TMUX unbind ^B &
- $TMUX bind ^A send-prefix &
-
- # Bind q,w,e to session 0,1,2. We need per-session toolbar colours!
- $TMUX bind q switch 0 &
- $TMUX bind Q switch 0 &
- $TMUX bind w switch 1 &
- $TMUX bind W switch 1 &
- $TMUX bind e switch 2 &
- $TMUX bind E switch 2 &
-
- $TMUX bind I list-windows &
- $TMUX bind i list-windows &
-
- # No bells, thanks
- $TMUX set bell-action none &
-fi
-
-$TMUX -s0 attach -d