Skip to content

Commit

Permalink
fix(home-manager): use correct gtk theme name (#239)
Browse files Browse the repository at this point in the history
- Theme name is all lowercase now
- Change order from `flavor-size-accent-gtkTheme` to
`flavor-accent-size+gtkTweaks`
  • Loading branch information
eljamm authored Jun 23, 2024
1 parent b6c8545 commit 2fb16f2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions modules/home-manager/gtk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,10 @@ in
gtk = {
theme =
let
flavorUpper = ctp.mkUpper cfg.flavor;
accentUpper = ctp.mkUpper cfg.accent;
sizeUpper = ctp.mkUpper cfg.size;

# use the light gtk theme for latte
gtkTheme = if cfg.flavor == "latte" then "Light" else "Dark";
gtkTweaks = lib.concatStringsSep "," cfg.tweaks;
in
{
name = "Catppuccin-${flavorUpper}-${sizeUpper}-${accentUpper}-${gtkTheme}";
name = "catppuccin-${cfg.flavor}-${cfg.accent}-${cfg.size}+${gtkTweaks}";
package = pkgs.catppuccin-gtk.override {
inherit (cfg) size tweaks;
accents = [ cfg.accent ];
Expand Down

0 comments on commit 2fb16f2

Please sign in to comment.