Select tiled layout at each pane creation

This commit is contained in:
Loïc Gremaud 2024-05-23 13:53:22 +02:00
parent 6cc86d7fdf
commit 2a4ba5ed92
Signed by: Legrems
GPG Key ID: D4620E6DF3E0121D

View File

@ -60,6 +60,8 @@ window = active_session.new_window(window_name, window_shell=f"ssh {servers[0]}"
for server in servers[1:]:
pane = window.split(shell=f"ssh {server}")
# Select tiled layout each time, to ensure enough space
window.select_layout("tiled")
# Wait until tmux finished working
time.sleep(0.1)