From 26d5ec8367203d63767281c0a5bcd1875f822953 Mon Sep 17 00:00:00 2001 From: MDietermann Date: Thu, 25 Jun 2026 20:12:28 +0200 Subject: [PATCH] refactor(zellij): improve session/layout handling --- lib/zellij.sh | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/lib/zellij.sh b/lib/zellij.sh index 383ba33..86e318a 100644 --- a/lib/zellij.sh +++ b/lib/zellij.sh @@ -17,26 +17,38 @@ write_zellij_config ~/.config/zellij/config.kdl cat >~/.config/zellij/layouts/arduino.kdl <<'LAYOUT' layout { - tab name="code" focus=true { - pane split_direction="vertical" { - pane size="65%" { - command "nvim" - args "." - } - pane split_direction="horizontal" { - pane size="60%" name="terminal" - pane size="40%" name="serial" { - command "bash" - args "-c" "echo '⚡ Serial — run: tio /dev/ttyUSB0 -b 115200'" - } + tab name="code" focus=true { + pane split_direction="vertical" { + pane size=1 borderless=true { + plugin location="tab-bar" + } + pane size="65%" { + command "nvim" + args "." + } + pane split_direction="horizontal" { + pane size="60%" name="terminal" + pane size="40%" name="serial" { + command "bash" + args "-c" "echo '⚡ Serial — run: tio /dev/ttyUSB0 -b 115200'" } } } - tab name="git" { - pane { - command "lazygit" - } + pane size=1 borderless=true { + plugin location="status-bar" } + } + tab name="git" { + pane size=1 borderless=true { + plugin location="tab-bar" + } + pane { + command "lazygit" + } + pane size=1 borderless=true { + plugin location="status-bar" + } + } } LAYOUT info "Zellij configured with $THEME_DISPLAY_NAME + Arduino layout"