big refactor
This commit is contained in:
commit
76d68230f6
81 changed files with 3065 additions and 0 deletions
50
modules/features/home/theme.nix
Normal file
50
modules/features/home/theme.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ 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";
|
||||
|
||||
# Catppuccin
|
||||
catppuccin = {
|
||||
accent = "blue";
|
||||
flavor = "mocha";
|
||||
|
||||
fcitx5.enable = true;
|
||||
obs.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in a new issue