# shellcheck shell=bash SESSION_NAME="aura-farm-$$" tmux new-session -d -s "$SESSION_NAME" "genact -s 25" tmux set-hook -t "$SESSION_NAME" pane-exited "run-shell 'tmux kill-session -t $SESSION_NAME'" for _ in {1..4}; do tmux split-window -t "$SESSION_NAME" -h "genact -s 25" done tmux select-layout -t "$SESSION_NAME" tiled tmux attach-session -t "$SESSION_NAME"