From 2a4ba5ed9226846579d7557a0d6cfa96df4df080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gremaud?= Date: Thu, 23 May 2024 13:53:22 +0200 Subject: [PATCH] Select tiled layout at each pane creation --- tmux_ssh_group.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmux_ssh_group.py b/tmux_ssh_group.py index e04ccd2..91b21d8 100644 --- a/tmux_ssh_group.py +++ b/tmux_ssh_group.py @@ -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)