summaryrefslogtreecommitdiff
path: root/sh/tmuxsplitscreen
diff options
context:
space:
mode:
Diffstat (limited to 'sh/tmuxsplitscreen')
-rwxr-xr-xsh/tmuxsplitscreen20
1 files changed, 20 insertions, 0 deletions
diff --git a/sh/tmuxsplitscreen b/sh/tmuxsplitscreen
new file mode 100755
index 0000000..9f81bd3
--- /dev/null
+++ b/sh/tmuxsplitscreen
@@ -0,0 +1,20 @@
+tmux new-session -d -s userone-internal
+tmux new-session -d -s usertwo-internal
+
+tmux new-session -d -s userone
+sleep 0.05
+tmux send-keys -t userone "TMUX=''" C-m
+tmux send-keys -t userone "tmux attach -t usertwo-internal" C-m
+tmux split-pane -t userone -h
+sleep 0.05
+tmux send-keys -t userone "TMUX=''" C-m
+tmux send-keys -t userone "tmux attach -t userone-internal" C-m
+
+tmux new-session -d -s usertwo
+sleep 0.05
+tmux send-keys -t usertwo "TMUX=''" C-m
+tmux send-keys -t usertwo "tmux attach -t userone-internal" C-m
+tmux split-pane -t usertwo -h
+sleep 0.05
+tmux send-keys -t usertwo "TMUX=''" C-m
+tmux send-keys -t usertwo "tmux attach -t usertwo-internal" C-m