diff --git a/hand7s/programs/zellij.nix b/hand7s/programs/zellij.nix index a910b23..20487ac 100644 --- a/hand7s/programs/zellij.nix +++ b/hand7s/programs/zellij.nix @@ -1,5 +1,5 @@ { - pkgs, + config, lib, ... }: { @@ -7,6 +7,68 @@ zellij = { enable = true; + layouts = { + "workspace" = { + layout = { + default_tab_template = { + children = [ + { + pane = { + size = 1; + plugin = { + location = "zellij:tab-bar"; + }; + }; + } + + {"children" = {};} + + { + pane = { + size = 2; + plugin = { + location = "zellij:tab-bar"; + }; + }; + } + ]; + }; + + tab = { + name = "workspace"; + focus = true; + pane = { + split_direction = "vertical"; + children = [ + { + pane = { + size = "30%"; + split_direction = "horizontal"; + children = [ + { + command = "${lib.getExe config.programs.gitui.package}"; + size = "50%"; + } + + { + focus = true; + size = "50%"; + } + ]; + }; + } + + { + command = "${lib.getExe' config.programs.yazi.package "yz"}"; + size = "70%"; + } + ]; + }; + }; + }; + }; + }; + settings = { options = { copy_on_select = false; @@ -31,7 +93,7 @@ ]; }; - default_shell = "${lib.getExe pkgs.nushell}"; + default_shell = "${lib.getExe config.programs.nushell.package}"; show_startup_tips = false; show_release_notes = false; simplified_ui = true;