From a1a9c771bb15dfbdff851117b82eddbb4c93ab68 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 24 Sep 2024 07:33:18 +0100 Subject: [PATCH] Re-add cava (music visualiser) --- system/home/shell/cava.nix | 18 ++++++++++++++++++ system/home/shell/default.nix | 1 + 2 files changed, 19 insertions(+) create mode 100644 system/home/shell/cava.nix diff --git a/system/home/shell/cava.nix b/system/home/shell/cava.nix new file mode 100644 index 00000000..64cf6f1a --- /dev/null +++ b/system/home/shell/cava.nix @@ -0,0 +1,18 @@ +{ config, ... }: +{ + programs.cava = { + enable = true; + settings = { + color = with config.lib.stylix.colors.withHashtag; { + gradient = 1; + gradient_count = 6; + gradient_color_1 = "'${red}'"; + gradient_color_2 = "'${yellow}'"; + gradient_color_3 = "'${green}'"; + gradient_color_4 = "'${cyan}'"; + gradient_color_5 = "'${blue}'"; + gradient_color_6 = "'${magenta}'"; + }; + }; + }; +} diff --git a/system/home/shell/default.nix b/system/home/shell/default.nix index 069a6060..ac569bf7 100644 --- a/system/home/shell/default.nix +++ b/system/home/shell/default.nix @@ -9,6 +9,7 @@ ./git.nix ./ssh.nix ./starship.nix + ./cava.nix ]; home = { packages = with pkgs; [