session_name:my_sessionwindows:-window_name:my_windowlayout:tiledsuppress_history:falseshell_command_before:-echo "before"panes:-shell_command:-printf '\033]2;%s\033\\' 'pane1'-./script1.sh# Runs script1 in the first panefocus:true-shell_command:-printf '\033]2;%s\033\\' 'pane2'-./script2.sh# Runs script2 in the second pane
#!/bin/bashSESSION="mysession"# Start a new sessiontmuxnew-session-d-s$SESSION# Split the window into four equal partstmuxsplit-window-h# Split verticallytmuxsplit-window-v# Split bottom-left horizontallytmuxselect-pane-R# Move to the right panetmuxsplit-window-v# Split bottom-right horizontally# Attach to sessiontmuxattach-session-t$SESSION