config/modules/home/rice/gtk/default.nix

71 lines
1.5 KiB
Nix
Raw Normal View History

2024-05-23 20:26:30 +00:00
{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.rice.gtk;
ctp = config.catppuccin;
2024-05-23 20:26:30 +00:00
in {
options.rice.gtk = with types; {
enable = mkBoolOpt false "Enable GTK Customization";
2024-05-23 20:26:30 +00:00
};
config = mkIf cfg.enable {
catppuccin.pointerCursor.enable = true;
2024-12-19 21:47:51 -05:00
home.pointerCursor = {
gtk.enable = true;
x11.enable = true;
};
2024-05-23 20:26:30 +00:00
gtk = {
enable = true;
font = {
2025-05-06 20:02:36 -04:00
name = fonts.ui;
size = 12;
2024-05-23 20:26:30 +00:00
};
theme = {
2025-01-13 20:45:19 -05:00
name = "Catppuccin-GTK-Dark";
package = pkgs.magnetic-catppuccin-gtk;
};
iconTheme = {
name = "Papirus-Dark";
2024-12-19 21:47:51 -05:00
package = pkgs.catppuccin-papirus-folders.override {
accent = ctp.accent;
flavor = ctp.flavor;
};
};
2024-05-23 20:26:30 +00:00
gtk3.extraConfig = {
gtk-xft-antialias = 1;
gtk-xft-hinting = 1;
gtk-xft-hintstyle = "hintslight";
gtk-xft-rgba = "rgb";
gtk-application-prefer-dark-theme = 1;
};
gtk4.extraConfig.gtk-application-prefer-dark-theme = 1;
gtk2.extraConfig = ''
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="rgb"
'';
};
2025-05-28 16:55:13 -04:00
# Linux-specific packages (Qt theming)
home.packages = with pkgs; lib.mkIf (!pkgs.stdenv.isDarwin) [
qt5.qttools
qt6Packages.qtstyleplugin-kvantum
libsForQt5.qtstyleplugin-kvantum
libsForQt5.qt5ct
];
2024-05-23 20:26:30 +00:00
};
}