From 91888a1cdb64394184c496bb667692d123b1cebe Mon Sep 17 00:00:00 2001 From: mo8it Date: Mon, 28 Aug 2023 21:12:41 +0200 Subject: [PATCH] Update Zellij layouts --- .config/zellij/layouts/advlabdb.kdl | 2 +- .config/zellij/layouts/collective-score.kdl | 10 +++++-- .config/zellij/layouts/dev_tools.kdl | 31 +++++++++++++++++++ .config/zellij/layouts/how2linux.kdl | 33 --------------------- .config/zellij/layouts/info_monitor.kdl | 4 +-- .config/zellij/layouts/oxiform.kdl | 4 +-- .config/zellij/layouts/oxitraffic.kdl | 4 +-- .config/zellij/layouts/pgp.kdl | 2 +- .config/zellij/layouts/update.kdl | 8 ++--- .config/zellij/layouts/website.kdl | 2 +- 10 files changed, 52 insertions(+), 48 deletions(-) create mode 100644 .config/zellij/layouts/dev_tools.kdl delete mode 100644 .config/zellij/layouts/how2linux.kdl diff --git a/.config/zellij/layouts/advlabdb.kdl b/.config/zellij/layouts/advlabdb.kdl index ddea6fe..3ca3ac8 100644 --- a/.config/zellij/layouts/advlabdb.kdl +++ b/.config/zellij/layouts/advlabdb.kdl @@ -6,7 +6,7 @@ layout { } } - cwd "/home/mo/code/hosted/advlabdb" + cwd "/home/mo8it/code/hosted/advlabdb" tab name="git" { pane { diff --git a/.config/zellij/layouts/collective-score.kdl b/.config/zellij/layouts/collective-score.kdl index 973c882..c7e15b2 100644 --- a/.config/zellij/layouts/collective-score.kdl +++ b/.config/zellij/layouts/collective-score.kdl @@ -6,13 +6,13 @@ layout { } } - cwd "/home/mo/code/collective-score" + cwd "/home/mo8it/code/hosted/collective-score" tab name="hx" split_direction="vertical" focus=true { pane { focus true + cwd "crates" command "fish" - args "-C" "hx" close_on_exit true } pane { @@ -26,5 +26,11 @@ layout { close_on_exit true } } + tab name="bg" split_direction="vertical"{ + pane { + command "podman" + args "run" "-it" "--tz" "Europe/Berlin" "-e" "TZ=Europe/Berlin" "-e" "PGTZ=Europe/Berlin" "--rm" "-p" "5432:5432" "-v" "/home/mo8it/.tmp/cs_server_db:/var/lib/postgresql/data:Z" "--env-file" "crates/server/.env" "docker.io/library/postgres:15-alpine" + } + } } diff --git a/.config/zellij/layouts/dev_tools.kdl b/.config/zellij/layouts/dev_tools.kdl new file mode 100644 index 0000000..6a88aa8 --- /dev/null +++ b/.config/zellij/layouts/dev_tools.kdl @@ -0,0 +1,31 @@ +layout { + default_tab_template { + children + pane size=1 borderless=true { + plugin location="zellij:compact-bar" + } + } + + cwd "/home/mo8it/code/hosted/dev_tools" + + tab name="hx" split_direction="vertical" focus=true { + pane { + focus true + cwd "src" + command "fish" + args "-C" "hx ." + close_on_exit true + } + } + tab name="git" split_direction="vertical" { + pane { + command "gitui" + } + } + tab name="mdbook" split_direction="vertical" { + pane { + command "mdbook" + args "serve" + } + } +} diff --git a/.config/zellij/layouts/how2linux.kdl b/.config/zellij/layouts/how2linux.kdl deleted file mode 100644 index 622726a..0000000 --- a/.config/zellij/layouts/how2linux.kdl +++ /dev/null @@ -1,33 +0,0 @@ -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 index a3b2095..2a3d934 100644 --- a/.config/zellij/layouts/info_monitor.kdl +++ b/.config/zellij/layouts/info_monitor.kdl @@ -6,7 +6,7 @@ layout { } } - cwd "/home/mo/code/info_monitor" + cwd "/home/mo8it/code/info_monitor" tab name="hx" split_direction="vertical" focus=true { pane { @@ -29,7 +29,7 @@ layout { 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" + args "run" "-it" "--rm" "-p" "5432:5432" "-v" "/home/mo8it/.tmp/info_monitor_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine" } pane { command "npx" diff --git a/.config/zellij/layouts/oxiform.kdl b/.config/zellij/layouts/oxiform.kdl index 2bf4890..431c55f 100644 --- a/.config/zellij/layouts/oxiform.kdl +++ b/.config/zellij/layouts/oxiform.kdl @@ -6,7 +6,7 @@ layout { } } - cwd "/home/mo/code/hosted/oxiform" + cwd "/home/mo8it/code/hosted/oxiform" tab name="hx" split_direction="vertical" focus=true { pane { @@ -29,7 +29,7 @@ layout { tab name="bg" split_direction="vertical"{ pane { 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" + args "run" "-it" "--rm" "-p" "5432:5432" "-v" "/home/mo8it/.tmp/oxiform_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine" } pane { command "npx" diff --git a/.config/zellij/layouts/oxitraffic.kdl b/.config/zellij/layouts/oxitraffic.kdl index 843e46a..dc38f57 100644 --- a/.config/zellij/layouts/oxitraffic.kdl +++ b/.config/zellij/layouts/oxitraffic.kdl @@ -6,7 +6,7 @@ layout { } } - cwd "/home/mo/code/hosted/oxitraffic" + cwd "/home/mo8it/code/hosted/oxitraffic" tab name="hx" split_direction="vertical" focus=true { pane { @@ -29,7 +29,7 @@ layout { tab name="bg" split_direction="vertical"{ pane { command "podman" - args "run" "-it" "--tz" "Europe/Berlin" "-e" "TZ=Europe/Berlin" "-e" "PGTZ=Europe/Berlin" "--rm" "-p" "5432:5432" "-v" "/home/mo/.tmp/oxitraffic_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine" + args "run" "-it" "--tz" "Europe/Berlin" "-e" "TZ=Europe/Berlin" "-e" "PGTZ=Europe/Berlin" "--rm" "-p" "5432:5432" "-v" "/home/mo8it/.tmp/oxitraffic_db:/var/lib/postgresql/data:Z" "--env-file" ".env" "docker.io/library/postgres:15-alpine" } pane { command "just" diff --git a/.config/zellij/layouts/pgp.kdl b/.config/zellij/layouts/pgp.kdl index 5abadb0..c1b1b71 100644 --- a/.config/zellij/layouts/pgp.kdl +++ b/.config/zellij/layouts/pgp.kdl @@ -6,7 +6,7 @@ layout { } } - cwd "/home/mo/code/pgp" + cwd "/home/mo8it/code/pgp" tab name="jupyterlab" focus=true { pane { diff --git a/.config/zellij/layouts/update.kdl b/.config/zellij/layouts/update.kdl index ae39f53..8cbcef3 100644 --- a/.config/zellij/layouts/update.kdl +++ b/.config/zellij/layouts/update.kdl @@ -25,20 +25,20 @@ layout { args "-c" "rustup update stable && cargo install-update -a" } pane { - cwd "/home/mo/code/compile/helix" + cwd "/home/mo8it/code/compile/helix" command "fish" - args "-c" "git pull -r && cargo +stable install --path helix-term" + args "-c" "git pull -r origin master && cargo +stable install --path helix-term --locked" } } pane split_direction="vertical" { pane { - cwd "/home/mo/servers/ansible" + cwd "/home/mo8it/servers/ansible" command "ansible-playbook" args "playbooks/update_dnf.yaml" } pane { - cwd "/home/mo/servers/ansible" + cwd "/home/mo8it/servers/ansible" command "ansible-playbook" args "playbooks/update_apt.yaml" } diff --git a/.config/zellij/layouts/website.kdl b/.config/zellij/layouts/website.kdl index 7b954e6..5f2be38 100644 --- a/.config/zellij/layouts/website.kdl +++ b/.config/zellij/layouts/website.kdl @@ -6,7 +6,7 @@ layout { } } - cwd "/home/mo/code/hosted/mo8it.com" + cwd "/home/mo8it/code/hosted/mo8it.com" tab name="hx" split_direction="vertical" focus=true { pane {