feat(cursor): Catppuccin -> Rose Pine
This commit is contained in:
parent
aa407e12b5
commit
f0fb2cc974
1 changed files with 16 additions and 26 deletions
|
@ -3,33 +3,23 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
inherit (lib) rp mkIf;
|
||||||
inherit (lib) ctp mkIf;
|
cfg = config.rose-pine.pointerCursor;
|
||||||
cfg = config.catppuccin.pointerCursor;
|
flavor =
|
||||||
|
if (cfg.flavor == "dawn")
|
||||||
# "dark" and "light" can be used alongside the regular accents
|
then "Dawn"
|
||||||
cursorAccentType = ctp.mergeEnums ctp.types.accentOption (
|
else "";
|
||||||
lib.types.enum [
|
in {
|
||||||
"dark"
|
options.rose-pine.pointerCursor = rp.mkRosePineOpt {
|
||||||
"light"
|
name = "pointer cursors";
|
||||||
]
|
# NOTE: we exclude this from the global `rose-pine.enable` as there is no
|
||||||
);
|
# `enable` option in the upstream module to guard it
|
||||||
in
|
enableDefault = false;
|
||||||
{
|
};
|
||||||
options.catppuccin.pointerCursor =
|
|
||||||
ctp.mkCatppuccinOpt {
|
|
||||||
name = "pointer cursors";
|
|
||||||
# NOTE: we exclude this from the global `catppuccin.enable` as there is no
|
|
||||||
# `enable` option in the upstream module to guard it
|
|
||||||
enableDefault = false;
|
|
||||||
}
|
|
||||||
// {
|
|
||||||
accent = ctp.mkBasicOpt "accent" cursorAccentType "cursors";
|
|
||||||
};
|
|
||||||
|
|
||||||
config.home.pointerCursor = mkIf cfg.enable {
|
config.home.pointerCursor = mkIf cfg.enable {
|
||||||
name = "catppuccin-${cfg.flavor}-${cfg.accent}-cursors";
|
name = "BreezeX-RosePine${flavor}-Linux";
|
||||||
package = pkgs.catppuccin-cursors.${cfg.flavor + ctp.mkUpper cfg.accent};
|
package = pkgs.rose-pine-cursor;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue