Skip to content

Commit

Permalink
fix(home-manager/gtk): support all tweaks (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses authored Aug 15, 2024
1 parent 57d7153 commit 5520567
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/home-manager/gtk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ in
"black"
"rimless"
"normal"
"float"
]
);
default = [ "normal" ];
default = [ ];
description = "Catppuccin tweaks for gtk";
};

Expand Down Expand Up @@ -121,10 +122,12 @@ in
(mkIf enable {
gtk.theme =
let
gtkTweaks = concatStringsSep "," cfg.tweaks;
gtkTweaks = "+" + concatStringsSep "," cfg.tweaks;
in
{
name = "catppuccin-${cfg.flavor}-${cfg.accent}-${cfg.size}+${gtkTweaks}";
name =
"catppuccin-${cfg.flavor}-${cfg.accent}-${cfg.size}"
+ lib.optionalString (cfg.tweaks != [ ]) gtkTweaks;
package = pkgs.catppuccin-gtk.override {
inherit (cfg) size tweaks;
accents = [ cfg.accent ];
Expand Down

0 comments on commit 5520567

Please sign in to comment.