I was experimenting with scripting tmux via bash and I got the above
error at the fifth pane creation.  I was under the impression that
tmux will auto resize panes to the smallest size and then issue such a
warning when it can no longer fit panes to the visible screen.

--8<---------------cut here---------------start------------->8---
#!/usr/bin/env bash

tmux start-server

tmux new-session -d -s MySession -n Shell1 -d "/usr/bin/env bash -i"
tmux split-window -t MySession:1 "/usr/bin/env bash -i"
tmux split-window -t MySession:1 "/usr/bin/env bash -i"
tmux split-window -t MySession:1 "/usr/bin/env bash -i"
tmux split-window -t MySession:1 "/usr/bin/env bash -c \"echo 'fifth shell'\"; 
/usr/bin/env bash -i"
tmux select-layout -t MySession:1 tiled
--8<---------------cut here---------------end--------------->8---

4 panes got created though and I was within the tmux session after
running the script.

How do I fix this?  Relatedly, how do I generalise the script for
various screen sizes of laptops and other screens to fill it up with
panes of a certain size? 

sivaram
-- 

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/krpqx3lfmajp32.fsf%40gmail.com.

Reply via email to