mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-09 08:23:52 +00:00
35 lines
867 B
Nix
35 lines
867 B
Nix
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.module.programs.cli.cava;
|
|
in {
|
|
options = { module.programs.cli.cava = { enable = mkEnableOption ""; }; };
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.cava = let
|
|
gradient = with config.lib.stylix.colors; {
|
|
rainbow = {
|
|
gradient = 1;
|
|
gradient_color_1 = "'#${base0E}'";
|
|
gradient_color_2 = "'#${base0D}'";
|
|
gradient_color_3 = "'#${base0C}'";
|
|
gradient_color_4 = "'#${base0B}'";
|
|
gradient_color_5 = "'#${base0A}'";
|
|
gradient_color_6 = "'#${base09}'";
|
|
};
|
|
beat = {
|
|
gradient = 1;
|
|
gradient_color_1 = "'#${base0C}'";
|
|
gradient_color_2 = "'#${base0D}'";
|
|
gradient_color_3 = "'#${base0E}'";
|
|
};
|
|
};
|
|
in {
|
|
enable = true;
|
|
settings.color = gradient.beat;
|
|
};
|
|
};
|
|
}
|
|
|