aboutsummaryrefslogtreecommitdiffstats
path: root/bin/tmux-test
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2013-11-03 12:30:45 +0100
committerDavid Runge <david.runge@frqrec.com>2013-11-03 12:30:45 +0100
commit67b0ec5741d327d27afe88783d85fcf2c4c4f204 (patch)
tree4ea47807c5e775927b96eb79933c09fbfcd0468e /bin/tmux-test
downloaddotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.tar.gz
dotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.tar.bz2
dotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.tar.xz
dotfiles-67b0ec5741d327d27afe88783d85fcf2c4c4f204.zip
First commit
Diffstat (limited to 'bin/tmux-test')
-rwxr-xr-xbin/tmux-test53
1 files changed, 53 insertions, 0 deletions
diff --git a/bin/tmux-test b/bin/tmux-test
new file mode 100755
index 0000000..ba0e5c6
--- /dev/null
+++ b/bin/tmux-test
@@ -0,0 +1,53 @@
+#!/bin/bash
+
+###this is going to split the pane into four
+###even horizontal panes
+tmux split-window -v
+sleep 1
+tmux send-keys -t 0 "clear" C-m
+tmux select-pane -t 0
+
+tmux split-window -v
+sleep 1
+tmux select-pane -t 3
+
+tmux split-window -v
+sleep 1
+tmux select-pane -t 5
+
+tmux split-window -v
+tmux select-layout even-vertical
+
+
+###this will split each of the four panes
+###vertically, resulting in eight seperate
+###panes
+
+for i in 0 2 4 6
+do
+tmux select-pane -t $i
+tmux split-window -h
+sleep 1
+done
+
+
+#this goes to each pane and sends a command, in this case - just identifies the pane.
+
+tmux select-pane -t 0
+tmux send-keys -t 0 "This is pane 0" C-m
+tmux select-pane -t 1
+tmux send-keys -t 1 "This is pane 1" C-m
+tmux select-pane -t 2
+tmux send-keys -t 2 "This is pane 2" C-m
+tmux select-pane -t 3
+tmux send-keys -t 3 echo "This is pane 3" C-m
+tmux select-pane -t 4
+tmux send-keys -t 4 "This is pane 4" C-m
+tmux select-pane -t 5
+tmux send-keys -t 5 "This is pane 5" C-m
+tmux select-pane -t 6
+tmux send-keys -t 6 "This is pane 6" C-m
+tmux select-pane -t 7
+tmux send-keys -t 7 "This is pane 7" C-m
+tmux select-pane -t 8
+tmux send-keys -t 8 "This is pane 8" C-m