This repository has no description
Something went wrong. Try again.
825 B · 39 lines
Nix
at main
12345678910111213141516171819202122232425262728293031323334353637383940{ osConfig, config, pkgs, lib, ...}:let cfg = config.catppuccin;in{ options.catppuccin.bemenu.enable = lib.mkOption { type = lib.types.bool; default = cfg.enable; }; config = lib.mkIf (config.programs.bemenu.enable && cfg.bemenu.enable) { programs.bemenu.settings = let palette = lib.mapAttrs (n: v: v.hex) (lib.importJSON "${cfg.sources.palette}/palette.json").${cfg.flavor}.colors; in with palette // { accent = palette.${cfg.accent}; }; lib.mapAttrs (n: v: lib.mkDefault v) { tb = base; fb = base; nb = base; ab = base; hb = base; tf = accent; ff = text; nf = text; af = text; hf = accent; bdr = accent; fn = "monospace"; }; };}