From dd505a0b1d72cce8d0b5b392afb52b62a839b3f1 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Wed, 22 Mar 2023 10:44:48 +0100 Subject: [PATCH] Zellij --- hm_modules/__basic.nix | 1 + hm_modules/zellij.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 hm_modules/zellij.nix diff --git a/hm_modules/__basic.nix b/hm_modules/__basic.nix index 6b0ab0c..f19e3bb 100644 --- a/hm_modules/__basic.nix +++ b/hm_modules/__basic.nix @@ -29,6 +29,7 @@ ./ssh.nix ./starship.nix ./tmux.nix + ./zellij.nix ./zoxide.nix ./zsh.nix ]; diff --git a/hm_modules/zellij.nix b/hm_modules/zellij.nix new file mode 100644 index 0000000..5df6c81 --- /dev/null +++ b/hm_modules/zellij.nix @@ -0,0 +1,30 @@ +{ pkgs, ... }: +let + strPalette = pkgs.lib.nix-rice.palette.toRgbHex pkgs.rice.colorPalette; +in +{ + programs.zellij.enable = true; + + xdg.configFile."zellij/config.kdl".text = '' + theme "nix-rice" + pane_frames false + ''; + + xdg.configFile."zellij/themes/nix-rice.kdl".text = '' + themes { + nix-rice { + bg "${strPalette.primary.foreground}" + fg "${strPalette.primary.background}" + red "${strPalette.normal.red}" + black "${strPalette.normal.black}" + green "${strPalette.normal.green}" + yellow "${strPalette.normal.yellow}" + blue "${strPalette.normal.blue}" + magenta "${strPalette.normal.magenta}" + cyan "${strPalette.normal.cyan}" + white "${strPalette.normal.white}" + orange "${strPalette.bright.red}" + } + } + ''; +}