refactor(zellij): improve session/layout handling
Some checks failed
ci / test (push) Has been cancelled
Some checks failed
ci / test (push) Has been cancelled
This commit is contained in:
@@ -17,26 +17,38 @@ write_zellij_config ~/.config/zellij/config.kdl
|
|||||||
|
|
||||||
cat >~/.config/zellij/layouts/arduino.kdl <<'LAYOUT'
|
cat >~/.config/zellij/layouts/arduino.kdl <<'LAYOUT'
|
||||||
layout {
|
layout {
|
||||||
tab name="code" focus=true {
|
tab name="code" focus=true {
|
||||||
pane split_direction="vertical" {
|
pane split_direction="vertical" {
|
||||||
pane size="65%" {
|
pane size=1 borderless=true {
|
||||||
command "nvim"
|
plugin location="tab-bar"
|
||||||
args "."
|
}
|
||||||
}
|
pane size="65%" {
|
||||||
pane split_direction="horizontal" {
|
command "nvim"
|
||||||
pane size="60%" name="terminal"
|
args "."
|
||||||
pane size="40%" name="serial" {
|
}
|
||||||
command "bash"
|
pane split_direction="horizontal" {
|
||||||
args "-c" "echo '⚡ Serial — run: tio /dev/ttyUSB0 -b 115200'"
|
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 size=1 borderless=true {
|
||||||
pane {
|
plugin location="status-bar"
|
||||||
command "lazygit"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
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
|
LAYOUT
|
||||||
info "Zellij configured with $THEME_DISPLAY_NAME + Arduino layout"
|
info "Zellij configured with $THEME_DISPLAY_NAME + Arduino layout"
|
||||||
|
|||||||
Reference in New Issue
Block a user