Add cava music visualiser with colour config

This commit is contained in:
Evie Litherland-Smith 2024-02-16 10:54:05 +00:00
parent 6a8967cd14
commit 6487b8312f
2 changed files with 18 additions and 0 deletions

17
home/cava/default.nix Normal file
View file

@ -0,0 +1,17 @@
{config, ...}: {
programs.cava = {
enable = true;
settings = {
color = with config.lib.stylix.colors; {
gradient = 1;
gradient_count = 6;
gradient_color_1 = "'${withHashtag.red}'";
gradient_color_2 = "'${withHashtag.yellow}'";
gradient_color_3 = "'${withHashtag.green}'";
gradient_color_4 = "'${withHashtag.cyan}'";
gradient_color_5 = "'${withHashtag.blue}'";
gradient_color_6 = "'${withHashtag.magenta}'";
};
};
};
}

View file

@ -18,6 +18,7 @@
../emacs/default.nix ../emacs/default.nix
../nyxt/default.nix ../nyxt/default.nix
../obs/default.nix ../obs/default.nix
../cava/default.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
candy-icons candy-icons