fix(home-manager): use correct gtk theme name (#239)

- Theme name is all lowercase now
- Change order from `flavor-size-accent-gtkTheme` to
`flavor-accent-size+gtkTweaks`
This commit is contained in:
Fedi Jamoussi 2024-06-23 01:05:49 +00:00 committed by GitHub
parent b6c854508d
commit 2fb16f2d6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,15 +72,10 @@ in
gtk = { gtk = {
theme = theme =
let let
flavorUpper = ctp.mkUpper cfg.flavor; gtkTweaks = lib.concatStringsSep "," cfg.tweaks;
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";
in in
{ {
name = "Catppuccin-${flavorUpper}-${sizeUpper}-${accentUpper}-${gtkTheme}"; name = "catppuccin-${cfg.flavor}-${cfg.accent}-${cfg.size}+${gtkTweaks}";
package = pkgs.catppuccin-gtk.override { package = pkgs.catppuccin-gtk.override {
inherit (cfg) size tweaks; inherit (cfg) size tweaks;
accents = [ cfg.accent ]; accents = [ cfg.accent ];