From cbe446e0a1be85cf519efce3d8c214a1e3e12d3d Mon Sep 17 00:00:00 2001 From: "Thomas G. Lopes" Date: Thu, 12 Mar 2026 10:56:34 +0000 Subject: [PATCH] add dotfiles and nixos zellij layouts with stacked panes --- zellij/files/config.kdl | 6 +++--- zellij/files/layouts/dev.kdl | 28 ++++++++++++++++++++++++++++ zellij/files/layouts/dotfiles.kdl | 13 +++++++++++++ zellij/files/layouts/nixos.kdl | 13 +++++++++++++ 4 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 zellij/files/layouts/dev.kdl create mode 100644 zellij/files/layouts/dotfiles.kdl create mode 100644 zellij/files/layouts/nixos.kdl diff --git a/zellij/files/config.kdl b/zellij/files/config.kdl index 6dcec42..cf84274 100644 --- a/zellij/files/config.kdl +++ b/zellij/files/config.kdl @@ -250,9 +250,9 @@ keybinds clear-defaults=true { // changing these requires a restart to take effect plugins { about location="zellij:about" -compact-bar location="zellij:compact-bar" { // replace it with these lines - tooltip "F1" // choose a keybinding to toggle the hints -} + compact-bar location="zellij:compact-bar" { + tooltip "F1" + } configuration location="zellij:configuration" filepicker location="zellij:strider" { cwd "/" diff --git a/zellij/files/layouts/dev.kdl b/zellij/files/layouts/dev.kdl new file mode 100644 index 0000000..cb0b53a --- /dev/null +++ b/zellij/files/layouts/dev.kdl @@ -0,0 +1,28 @@ +layout { + default_tab_template { + children + pane size=1 borderless=true { + plugin location="zellij:compact-bar" + } + } + + tab name="dotfiles" cwd="/home/thomasgl/.dotfiles" { + pane split_direction="vertical" { + pane stacked=true { + pane + pane command="nvim" + } + pane size="30%" command="pi" + } + } + + tab name="NixOS" cwd="/home/thomasgl/etc/nixos" { + pane split_direction="vertical" { + pane stacked=true { + pane + pane command="nvim" + } + pane size="30%" command="pi" + } + } +} diff --git a/zellij/files/layouts/dotfiles.kdl b/zellij/files/layouts/dotfiles.kdl new file mode 100644 index 0000000..5a9fc3d --- /dev/null +++ b/zellij/files/layouts/dotfiles.kdl @@ -0,0 +1,13 @@ +layout { + cwd "/home/thomasgl/.dotfiles" + pane split_direction="vertical" { + pane stacked=true { + pane + pane command="nvim" + } + pane size="30%" command="pi" + } + pane size=1 borderless=true { + plugin location="zellij:compact-bar" + } +} diff --git a/zellij/files/layouts/nixos.kdl b/zellij/files/layouts/nixos.kdl new file mode 100644 index 0000000..3876dea --- /dev/null +++ b/zellij/files/layouts/nixos.kdl @@ -0,0 +1,13 @@ +layout { + cwd "/home/thomasgl/etc/nixos" + pane split_direction="vertical" { + pane stacked=true { + pane + pane command="nvim" + } + pane size="30%" command="pi" + } + pane size=1 borderless=true { + plugin location="zellij:compact-bar" + } +}