home(catppuccin): add i3status colours

This commit is contained in:
514fpv 2024-07-18 17:36:24 +08:00
parent 4badba5180
commit fd6763c19b
Signed by: koishi
SSH key fingerprint: SHA256:VkIdW3jUIiqecV2WNAje2fGU5lEhN0XZ58DN0NS4pv0

View file

@ -3,7 +3,7 @@
, config
, ... }: with lib; let
cfg = config.passthrough.catppuccin;
palette = (import ./palette.nix).${cfg.palette};
palette = (lib.importJSON "${config.catppuccin.sources.palette}/palette.json").${config.catppuccin.flavor}.colors;
in mkIf cfg.enable {
catppuccin = {
enable = true;
@ -58,4 +58,11 @@ in mkIf cfg.enable {
# dodge the status bar
gaps.bottom = 0;
};
# i3status colour palette override
programs.i3status.general = with palette; {
color_good = lavender.hex;
color_degraded = yellow.hex;
color_bad = red.hex;
};
}