Você pode usar tmux
. Aqui eu descrevo como iniciar o tmux com quatro painéis.
No seu caso, você pode usar e adaptar este script.
#!/bin/bash
session="mysession"
if tmux has-session -t "$session"; then
"Session $SESSION already exists."
exit 0
fi
# start ./startProgram1 here
tmux new-session -d -s "$session" mc
# start all other applications
# use -v for vertical split and -h for horizontal
tmux select-window -t "$session":0
# start ./startProgram2 here
tmux split-window -v nano
tmux select-window -t "$session":0
# start ./startProgram3 here
tmux split-window -h vi
tmux attach -t "$session"
O comportamento atual é