diff --git a/modules/home-manager/gtk.nix b/modules/home-manager/gtk.nix index 8cca3fd..85abece 100644 --- a/modules/home-manager/gtk.nix +++ b/modules/home-manager/gtk.nix @@ -31,6 +31,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 { @@ -69,6 +74,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.icon.flavour; + accent = cfg.icon.accent; + }; + }; }; xdg.configFile =