Script to create specified Tmux Panes

118 Views Asked by At

I want to create a script where number of panes (upto 16 panes) should be taken as input and create that many panes in a tmux session. Before I was hard-coding, using series of split-window cmds, however, now we want the script to be more generic. how can we achieve this?

1

There are 1 best solutions below

0
On BEST ANSWER

tmuxp is a great tool for doing the above task.

https://github.com/tmux-python/tmuxp