This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/modules/features/home/theme.nix
2026-04-14 01:15:18 +07:00

43 lines
1.1 KiB
Nix

{
pkgs,
lib,
...
}: let
catppuccin-gtk = pkgs.catppuccin-gtk.override {
variant = "mocha";
accents = ["sapphire"];
size = "compact";
};
in {
home.activation.copyGtkTheme = lib.hm.dag.entryAfter ["writeBoundary"] ''
mkdir -p "$HOME/.themes/"
if [ ! -d "$HOME/.themes/catppuccin-mocha-sapphire-compact" ]; then
cp -r "${catppuccin-gtk}/share/themes/catppuccin-mocha-sapphire-compact" "$HOME/.themes/"
fi
if [ ! -d "$HOME/.themes/catppuccin-mocha-sapphire-compact-hdpi" ]; then
cp -r "${catppuccin-gtk}/share/themes/catppuccin-mocha-sapphire-compact-hdpi" "$HOME/.themes/"
fi
if [ ! -d "$HOME/.themes/catppuccin-mocha-sapphire-compact-xhdpi" ]; then
cp -r "${catppuccin-gtk}/share/themes/catppuccin-mocha-sapphire-compact-xhdpi" "$HOME/.themes/"
fi
'';
# QT
qt = {
enable = true;
platformTheme.name = "qtct";
style = {
package = with pkgs; [
catppuccin-qt5ct
catppuccin-kde
kdePackages.breeze
];
};
};
# GTK
gtk.theme.name = "catppuccin-mocha-sapphire-compact";
}