2024-12-17 12:10:05 +00:00
|
|
|
{
|
|
|
|
x,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2024-11-21 09:24:15 +00:00
|
|
|
with lib;
|
2024-12-09 01:15:55 +00:00
|
|
|
with x;
|
2024-12-17 12:10:05 +00:00
|
|
|
let
|
|
|
|
cfg = config.module.programs.cli.cava;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.module.programs.cli.cava = {
|
|
|
|
enable = mkBool;
|
|
|
|
};
|
2024-11-21 09:24:15 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-12-17 12:10:05 +00:00
|
|
|
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}'";
|
|
|
|
};
|
2024-11-21 13:51:18 +00:00
|
|
|
};
|
2024-12-17 12:10:05 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
enable = true;
|
|
|
|
settings.color = gradient.beat;
|
2024-11-21 09:24:15 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|