programs.zellij.layouts

Configuration written to $XDG_CONFIG_HOME/zellij/layouts/.kdl.

See https://zellij.dev/documentation for the full list of options.

Type
attribute set of (YAML 1.1 value or absolute path or strings concatenated with "\n")
Default
{ }
Example
{
  dev = {
    layout = {
      _children = [
        {
          default_tab_template = {
            _children = [
              {
                pane = {
                  size = 1;
                  borderless = true;
                  plugin = {
                    location = "zellij:tab-bar";
                  };
                };
              }
              { "children" = { }; }
              {
                pane = {
                  size = 2;
                  borderless = true;
                  plugin = {
                    location = "zellij:status-bar";
                  };
                };
              }
            ];
          };
        }
        {
          tab = {
            _props = {
              name = "Project";
              focus = true;
            };
            _children = [
              {
                pane = {
                  command = "nvim";
                };
              }
            ];
          };
        }
        {
          tab = {
            _props = {
              name = "Git";
            };
            _children = [
              {
                pane = {
                  command = "lazygit";
                };
              }
            ];
          };
        }
        {
          tab = {
            _props = {
              name = "Files";
            };
            _children = [
              {
                pane = {
                  command = "yazi";
                };
              }
            ];
          };
        }
        {
          tab = {
            _props = {
              name = "Shell";
            };
            _children = [
              {
                pane = {
                  command = "zsh";
                };
              }
            ];
          };
        }
      ];
    };
  };
}
Declared
<home-manager/modules/programs/zellij.nix>