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,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) ctp mkIf;
|
||||
cfg = config.catppuccin.pointerCursor;
|
||||
|
||||
# "dark" and "light" can be used alongside the regular accents
|
||||
cursorAccentType = ctp.mergeEnums ctp.types.accentOption (
|
||||
lib.types.enum [
|
||||
"dark"
|
||||
"light"
|
||||
]
|
||||
);
|
||||
in
|
||||
{
|
||||
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";
|
||||
};
|
||||
}: let
|
||||
inherit (lib) rp mkIf;
|
||||
cfg = config.rose-pine.pointerCursor;
|
||||
flavor =
|
||||
if (cfg.flavor == "dawn")
|
||||
then "Dawn"
|
||||
else "";
|
||||
in {
|
||||
options.rose-pine.pointerCursor = rp.mkRosePineOpt {
|
||||
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
|
||||
enableDefault = false;
|
||||
};
|
||||
|
||||
config.home.pointerCursor = mkIf cfg.enable {
|
||||
name = "catppuccin-${cfg.flavor}-${cfg.accent}-cursors";
|
||||
package = pkgs.catppuccin-cursors.${cfg.flavor + ctp.mkUpper cfg.accent};
|
||||
name = "BreezeX-RosePine${flavor}-Linux";
|
||||
package = pkgs.rose-pine-cursor;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue