diff --git a/home/zellij/default.nix b/home/zellij/default.nix index 4883a27..2142a74 100644 --- a/home/zellij/default.nix +++ b/home/zellij/default.nix @@ -2,21 +2,31 @@ default, ... }: { + imports = [ + ./layouts.nix + ]; + programs.zellij = { enable = true; settings = { - theme = "custom"; - themes.custom.bg = "#585b70"; - themes.custom.fg = "#cdd6f4"; - themes.custom.red = "#f38ba8"; - themes.custom.green = "#a6e3a1"; - themes.custom.blue = "#89b4fa"; - themes.custom.yellow = "#f9e2af"; - themes.custom.magenta = "#f5c2e7"; - themes.custom.orange = "#fab387"; - themes.custom.cyan = "#89dceb"; - themes.custom.black = "#181825"; - themes.custom.white = "#cdd6f4"; - }; - }; + on_force_close = "quit"; + simplified_ui = false; + default_layout = "default"; + ui.pane_frames.rounded_corners = true; + theme = "catppuccin-mocha"; + themes.catppuccin-mocha = { + bg = "#585b70"; + fg = "#cdd6f4"; + red = "#f38ba8"; + green = "#a6e3a1"; + blue = "#89b4fa"; + yellow = "#f9e2af"; + magenta = "#f5c2e7"; + orange = "#fab387"; + cyan = "#89dceb"; + black = "#181825"; + white = "#cdd6f4"; + }; + }; + }; } diff --git a/home/zellij/layouts.nix b/home/zellij/layouts.nix new file mode 100644 index 0000000..700257a --- /dev/null +++ b/home/zellij/layouts.nix @@ -0,0 +1,43 @@ +{ + default, + ... +}: { + home.file.".config/zellij/mainlayout.kdl".text = '' + layout { + tab name="main" { + pane size=1 borderless=true { + plugin location="zellij:tab-bar" + } + pane split_direction="vertical" { + pane + pane split_direction="horizontal" { + pane + pane + } + } + pane size=2 borderless=true { + plugin location="zellij:status-bar" + } + } + tab name="lazygit" { + pane size=1 borderless=true { + plugin location="zellij:tab-bar" + } + pane command="lazygit" + pane size=2 borderless=true { + plugin location="zellij:status-bar" + } + } + tab name="spotify" { + pane size=1 borderless=true { + plugin location="zellij:tab-bar" + } + pane command="spotify_player" + pane size=2 borderless=true { + plugin location="zellij:status-bar" + } + } +} + + ''; +}