Skip to content

Commit

Permalink
feat(home-manager): add support for cava themes with transparent back…
Browse files Browse the repository at this point in the history
…ground (#191)
  • Loading branch information
AdrienCos authored May 28, 2024
1 parent 144b70d commit ba40680
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .sources/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"repo": "cava"
},
"branch": "main",
"revision": "56c1e69318856a853b28e3ccce500c00099dc051",
"url": "https://github.com/catppuccin/cava/archive/56c1e69318856a853b28e3ccce500c00099dc051.tar.gz",
"hash": "0saz99k2gb2xg8wl3qcfn7xxmvdp0qhbzas2mqxackxbbdh49lql"
"revision": "6ec25ba688e30f3e5d6004ef6a295e6ba90c64d4",
"url": "https://github.com/catppuccin/cava/archive/6ec25ba688e30f3e5d6004ef6a295e6ba90c64d4.tar.gz",
"hash": "0nqpddlff1x5igipn9wc2ipagj53s0b63vp1zm3z6lzwlx8q5q6p"
},
"delta": {
"type": "Git",
Expand Down
7 changes: 5 additions & 2 deletions modules/home-manager/cava.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ let
inherit (config.catppuccin) sources;
cfg = config.programs.cava.catppuccin;
enable = cfg.enable && config.programs.cava.enable;
flavor = "${cfg.flavor}" + lib.optionalString cfg.transparent "-transparent";
in
{
options.programs.cava.catppuccin = lib.ctp.mkCatppuccinOpt "cava";
options.programs.cava.catppuccin = lib.ctp.mkCatppuccinOpt "cava" // {
transparent = lib.mkEnableOption "transparent version of flavor";
};

config.programs.cava = lib.mkIf enable {
settings = lib.ctp.fromINIRaw (sources.cava + "/themes/${cfg.flavor}.cava");
settings = lib.ctp.fromINIRaw (sources.cava + "/themes/${flavor}.cava");
};
}

0 comments on commit ba40680

Please sign in to comment.