Skip to content

Commit

Permalink
feat(home-manager): add gtk icon theme
Browse files Browse the repository at this point in the history
Uses catppuccin-papirus-folders
  • Loading branch information
Weathercold committed May 14, 2024
1 parent b0dc7f3 commit 31f3ee8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/home-manager/gtk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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.icon.flavour;
accent = cfg.icon.accent;
};
};
};

xdg.configFile =
Expand Down

0 comments on commit 31f3ee8

Please sign in to comment.