feat(home-manager): add support for cava themes with transparent background (#191)
This commit is contained in:
parent
144b70d50e
commit
ba40680357
2 changed files with 8 additions and 5 deletions
|
@ -56,9 +56,9 @@
|
||||||
"repo": "cava"
|
"repo": "cava"
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"revision": "56c1e69318856a853b28e3ccce500c00099dc051",
|
"revision": "6ec25ba688e30f3e5d6004ef6a295e6ba90c64d4",
|
||||||
"url": "https://github.com/catppuccin/cava/archive/56c1e69318856a853b28e3ccce500c00099dc051.tar.gz",
|
"url": "https://github.com/catppuccin/cava/archive/6ec25ba688e30f3e5d6004ef6a295e6ba90c64d4.tar.gz",
|
||||||
"hash": "0saz99k2gb2xg8wl3qcfn7xxmvdp0qhbzas2mqxackxbbdh49lql"
|
"hash": "0nqpddlff1x5igipn9wc2ipagj53s0b63vp1zm3z6lzwlx8q5q6p"
|
||||||
},
|
},
|
||||||
"delta": {
|
"delta": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
|
|
@ -3,11 +3,14 @@ let
|
||||||
inherit (config.catppuccin) sources;
|
inherit (config.catppuccin) sources;
|
||||||
cfg = config.programs.cava.catppuccin;
|
cfg = config.programs.cava.catppuccin;
|
||||||
enable = cfg.enable && config.programs.cava.enable;
|
enable = cfg.enable && config.programs.cava.enable;
|
||||||
|
flavor = "${cfg.flavor}" + lib.optionalString cfg.transparent "-transparent";
|
||||||
in
|
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 {
|
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");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue