bash:
$ tmux set-window-option main-pane-width 20; tmux select-layout main-vertical
tmuxp:
session_name: DB
windows:
- window_name: Prod
layout: main-vertical
focus: True
options:
main-pane-width: 30
panes:session_name: DB
windows:
- window_name: Prod
layout: main-vertical
focus: True
options:
main-pane-width: 30
panes:
- shell_command:
- echo table
- tmux select-layout main-vertical
- shell_command:
- echo sql
- shell_command:
- echo table
- tmux select-layout main-vertical
- shell_command:
- echo sql
Resource: https://devel.tech/tips/n/tMuXrSz9/resize-tmux-main-panes-by-percentage