feat(cava): Catppuccin -> Rose Pine
Some checks are pending
CI / Format Nix files (push) Waiting to run
CI / Test Modules (push) Waiting to run
CI / Validate sources (push) Waiting to run
Release / Publish to Flake registries (push) Blocked by required conditions
Release / Make release (push) Waiting to run
Build & deploy website / Build site (push) Waiting to run
Build & deploy website / Deploy website (push) Blocked by required conditions
Some checks are pending
CI / Format Nix files (push) Waiting to run
CI / Test Modules (push) Waiting to run
CI / Validate sources (push) Waiting to run
Release / Publish to Flake registries (push) Blocked by required conditions
Release / Make release (push) Waiting to run
Build & deploy website / Build site (push) Waiting to run
Build & deploy website / Deploy website (push) Blocked by required conditions
This commit is contained in:
parent
04374c0bc2
commit
aa407e12b5
2 changed files with 18 additions and 15 deletions
|
@ -52,13 +52,13 @@
|
|||
"type": "Git",
|
||||
"repository": {
|
||||
"type": "GitHub",
|
||||
"owner": "catppuccin",
|
||||
"owner": "rose-pine",
|
||||
"repo": "cava"
|
||||
},
|
||||
"branch": "main",
|
||||
"revision": "0746f77974330338ee2e1e4d1ef9872eba57eb26",
|
||||
"url": "https://github.com/catppuccin/cava/archive/0746f77974330338ee2e1e4d1ef9872eba57eb26.tar.gz",
|
||||
"hash": "01jvxv797zvamwm82m5i1m9b92hm1bcjdr2w53wi60ws244iq174"
|
||||
"revision": "f9a915563d281d4a58e6f9fe701bdb769f1bbf26",
|
||||
"url": "https://github.com/rose-pine/cava/archive/f9a915563d281d4a58e6f9fe701bdb769f1bbf26.tar.gz",
|
||||
"hash": "06qzrlbj2kzrbrq6ag9kha0yx3yvixsz79p7x4ib2dxl9rkxk7gf"
|
||||
},
|
||||
"delta": {
|
||||
"type": "Git",
|
||||
|
|
|
@ -1,16 +1,19 @@
|
|||
{ config, lib, ... }:
|
||||
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 { name = "cava"; } // {
|
||||
transparent = lib.mkEnableOption "transparent version of flavor";
|
||||
};
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (config.rose-pine) sources;
|
||||
cfg = config.programs.cava.rose-pine;
|
||||
enable = cfg.enable && config.programs.cava.enable;
|
||||
flavor =
|
||||
if (cfg.flavor == "main")
|
||||
then "rosepine"
|
||||
else cfg.flavor;
|
||||
in {
|
||||
options.programs.cava.rose-pine = lib.rp.mkRosePineOpt {name = "cava";};
|
||||
|
||||
config.programs.cava = lib.mkIf enable {
|
||||
settings = lib.ctp.fromINIRaw (sources.cava + "/themes/${flavor}.cava");
|
||||
settings = lib.rp.fromINIRaw (sources.cava + "/${flavor}.cava");
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue