From 1ba75d8e26bfae17e6a17bb3cfb5a1355efdbf08 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Thu, 22 Dec 2022 22:05:58 +0100 Subject: [PATCH] Split ansible playbook --- .config/zellij/layouts/update.kdl | 68 ++++++++++++++++++++----------- 1 file changed, 44 insertions(+), 24 deletions(-) diff --git a/.config/zellij/layouts/update.kdl b/.config/zellij/layouts/update.kdl index 126fc88..93aaec1 100644 --- a/.config/zellij/layouts/update.kdl +++ b/.config/zellij/layouts/update.kdl @@ -1,29 +1,49 @@ layout { - pane { - command "fish" - args "-c" "~/.scripts/update.py rpm-ostree" - close_on_exit true + pane split_direction="vertical" { + pane { + command "fish" + args "-c" "~/.scripts/update.py rpm-ostree" + close_on_exit true + } + pane focus=true { + command "fish" + args "-c" "~/.scripts/update.py flatpak" + close_on_exit true + } } - pane focus=true { - command "fish" - args "-c" "~/.scripts/update.py flatpak" - close_on_exit true + + pane split_direction="vertical" { + pane { + command "fish" + args "-c" "~/.scripts/update.py cargo" + close_on_exit true + } + pane { + cwd "/home/mo/code/compile/helix" + command "fish" + args "-c" "git pull -r && cargo install --path helix-term" + close_on_exit true + } } - pane { - command "fish" - args "-c" "~/.scripts/update.py cargo" - close_on_exit true - } - pane { - cwd "/home/mo/code/compile/helix" - command "fish" - args "-c" "git pull -r && cargo install --path helix-term" - close_on_exit true - } - pane { - cwd "/home/mo/servers/ansible" - command "fish" - args "-c" "ansible-playbook playbooks/update.yml; read -P Enter" - close_on_exit true + + pane split_direction="vertical" { + pane { + cwd "/home/mo/servers/ansible" + command "fish" + args "-c" "ansible-playbook playbooks/update_dnf.yaml; read -P Enter" + close_on_exit true + } + pane { + cwd "/home/mo/servers/ansible" + command "fish" + args "-c" "ansible-playbook playbooks/update_apt.yaml; read -P Enter" + close_on_exit true + } + pane { + cwd "/home/mo/servers/ansible" + command "fish" + args "-c" "ansible-playbook playbooks/update_local.yaml" + close_on_exit true + } } }