1
0
Fork 0

feat: gtk

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-07-14 21:18:49 -05:00
parent 458bce68e6
commit 82b9cfae5e
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 56 additions and 0 deletions

View File

@ -12,6 +12,7 @@
./gpg.nix
./git.nix
./go.nix
./gtk.nix
./helix.nix
./jq.nix
./nushell.nix

55
apps/gtk.nix 100644
View File

@ -0,0 +1,55 @@
{
config,
lib,
pkgs,
...
}: {
home.pointerCursor = {
name = "catppuccin-cursors";
package = pkgs.catppuccin-cursors.mochaLavender;
size = 24;
};
gtk = {
enable = true;
iconTheme = {
name = "Papirus-Dark";
package = pkgs.catppuccin-papirus-folders.override {
flavor = "mocha";
accent = "lavender";
};
};
theme = {
name = "Catppuccin-Mocha-Compact-Lavender-Dark";
package = pkgs.catppuccin-gtk.override {
accents = ["lavender"];
variant = "mocha";
size = "compact";
};
};
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
gtk2.extraConfig = ''
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="rgb"
'';
gtk3.extraConfig = {
gtk-xft-antialias = 1;
gtk-xft-hinting = 1;
gtk-xft-hintstyle = "hintslight";
gtk-xft-rgba = "rgb";
};
};
xdg = let
themeDir = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}";
in
lib.mkIf config.gtk.enable {
configFile."gtk-4.0/assets" = {
source = "${themeDir}/gtk-4.0/assets";
recursive = true;
};
configFile."gtk-4.0/gtk.css".source = "${themeDir}/gtk-4.0/gtk.css";
configFile."gtk-4.0/gtk-dark.css".source = "${themeDir}/gtk-4.0/gtk-dark.css";
};
}