diff --git a/modules/home-manager/gtk.nix b/modules/home-manager/gtk.nix index 74a3f54b..075a2ef9 100644 --- a/modules/home-manager/gtk.nix +++ b/modules/home-manager/gtk.nix @@ -30,6 +30,11 @@ in // { accent = ctp.mkBasicOpt "accent" cursorAccentType "gtk cursors"; }; + + icon = ctp.mkCatppuccinOpt "gtk modified Papirus icon theme" + // { + accent = ctp.mkAccentOpt "gtk modified Papirus icon theme"; + }; }; config = lib.mkIf enable { @@ -68,6 +73,22 @@ in name = "Catppuccin-${flavourUpper}-${accentUpper}-Cursors"; package = pkgs.catppuccin-cursors.${cfg.cursor.flavour + accentUpper}; }; + + iconTheme = + let + # use the light icon theme for latte + polarity = + if cfg.icon.flavour == "latte" + then "Light" + else "Dark"; + in + lib.mkIf cfg.icon.enable { + name = "Papirus-${polarity}"; + package = pkgs.catppuccin-papirus-folders.override { + flavor = cfg.flavour; + accent = cfg.accent; + }; + }; }; xdg.configFile =