diff --git a/.config/zellij/layouts/how2linux.kdl b/.config/zellij/layouts/how2linux.kdl new file mode 100644 index 0000000..622726a --- /dev/null +++ b/.config/zellij/layouts/how2linux.kdl @@ -0,0 +1,33 @@ +layout { + default_tab_template { + children + pane size=1 borderless=true { + plugin location="zellij:compact-bar" + } + } + + cwd "/home/mo/code/hosted/how_to_linux" + + tab name="git" { + pane { + command "fish" + args "-c" "gitui" + close_on_exit true + } + } + tab name="hx" focus=true { + pane { + cwd "src" + command "fish" + args "-c" "hx" + close_on_exit true + } + } + tab name="mdbook" { + pane { + command "fish" + args "-c" "mdbook serve" + close_on_exit true + } + } +} diff --git a/.config/zellij/layouts/info_monitor.kdl b/.config/zellij/layouts/info_monitor.kdl new file mode 100644 index 0000000..a3b2095 --- /dev/null +++ b/.config/zellij/layouts/info_monitor.kdl @@ -0,0 +1,40 @@ +layout { + default_tab_template { + children + pane size=1 borderless=true { + plugin location="zellij:compact-bar" + } + } + + cwd "/home/mo/code/info_monitor" + + tab name="hx" split_direction="vertical" focus=true { + pane { + focus true + command "fish" + args "-C" "hx src/main.rs" + close_on_exit true + } + pane { + command "bacon" + } + } + tab name="git" split_direction="vertical" { + pane { + command "fish" + args "-C" "gitui" + close_on_exit true + } + } + tab name="bg" split_direction="vertical"{ + pane { + command "podman" + args "run" "-it" "--rm" "-p" "5432:5432" "-v" "/home/mo/.tmp/info_monitor_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine" + } + pane { + command "npx" + args "tailwindcss" "-mw" "-i" "input.css" "-o" "static/main.css" + } + } +} + diff --git a/.config/zellij/layouts/oxiform.kdl b/.config/zellij/layouts/oxiform.kdl index b315c73..2bf4890 100644 --- a/.config/zellij/layouts/oxiform.kdl +++ b/.config/zellij/layouts/oxiform.kdl @@ -16,9 +16,7 @@ layout { close_on_exit true } pane { - command "fish" - args "-C" "bacon" - close_on_exit true + command "bacon" } } tab name="git" split_direction="vertical" { @@ -30,14 +28,12 @@ layout { } tab name="bg" split_direction="vertical"{ pane { - command "fish" - args "-C" "podman run -it --rm -p 5432:5432 --env-file .env docker.io/library/postgres:15-alpine" - close_on_exit true + command "podman" + args "run" "-it" "--rm" "-p" "5432:5432" "-v" "/home/mo/.tmp/oxiform_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine" } pane { - command "fish" - args "-C" "npx tailwindcss -mw -i input.css -o static/main.css" - close_on_exit true + command "npx" + args "tailwindcss" "-mw" "-i" "input.css" "-o" "static/main.css" } } } diff --git a/.config/zellij/layouts/pgp.kdl b/.config/zellij/layouts/pgp.kdl index e2c60c4..5abadb0 100644 --- a/.config/zellij/layouts/pgp.kdl +++ b/.config/zellij/layouts/pgp.kdl @@ -6,19 +6,13 @@ layout { } } - cwd "/home/mo/Downloads/pgp" + cwd "/home/mo/code/pgp" tab name="jupyterlab" focus=true { pane { + focus true command "fish" args "-c" "./container.fish" - close_on_exit true - } - } - tab name="shell" { - pane { - command "fish" - close_on_exit true } } } diff --git a/.config/zellij/layouts/update.kdl b/.config/zellij/layouts/update.kdl index 8061b0c..b658703 100644 --- a/.config/zellij/layouts/update.kdl +++ b/.config/zellij/layouts/update.kdl @@ -1,49 +1,59 @@ layout { - 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 + default_tab_template { + children + pane size=1 borderless=true { + plugin location="zellij:compact-bar" } } - pane split_direction="vertical" { - pane { - command "fish" - args "-c" "~/.scripts/update.py cargo" - close_on_exit true + tab name="update" split_direction="horizontal" focus=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 { - cwd "/home/mo/code/compile/helix" - command "fish" - args "-c" "git pull -r && cargo +stable install --path helix-term" - 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 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 +stable install --path helix-term" + 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 + + 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 + } } } } diff --git a/.config/zellij/layouts/website.kdl b/.config/zellij/layouts/website.kdl index 539c416..7b954e6 100644 --- a/.config/zellij/layouts/website.kdl +++ b/.config/zellij/layouts/website.kdl @@ -25,14 +25,12 @@ layout { } tab name="bg" split_direction="vertical"{ pane { - command "fish" - args "-C" "zola serve --open --drafts" - close_on_exit true + command "just" + args "zola" } pane { - command "fish" - args "-C" "npx tailwindcss -mw -i input.css -o static/main.css" - close_on_exit true + command "just" + args "tailwind" } } }