aboutsummaryrefslogtreecommitdiffstats
path: root/bin/tmux-test
diff options
context:
space:
mode:
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