style: big gtk rework
I hate gtk
This commit is contained in:
parent
304f14ac57
commit
e03b8873cb
3 changed files with 58 additions and 19 deletions
|
@ -7,9 +7,9 @@
|
|||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.types) str package;
|
||||
inherit (lib.modules) mkIf;
|
||||
cfg = config.modules.theme.gtk;
|
||||
cfg = config.modules.theming.gtk;
|
||||
in {
|
||||
options.modules.theme.gtk = {
|
||||
options.modules.theming.gtk = {
|
||||
enable = mkEnableOption "Wether to enable GTK theming";
|
||||
theme = {
|
||||
name = mkOption {
|
||||
|
@ -32,7 +32,7 @@ in {
|
|||
};
|
||||
package = mkOption {
|
||||
description = "The GTK icon theme package";
|
||||
default = pkgs.catppuccin-papirus-folders;
|
||||
default = pkgs.papirus-icon-theme;
|
||||
type = package;
|
||||
};
|
||||
};
|
||||
|
@ -40,5 +40,25 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
# NOTE: we need this or gtk breaks
|
||||
programs.dconf.enable = true;
|
||||
|
||||
environment = {
|
||||
systemPackages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
gruvbox-gtk-theme
|
||||
papirus-icon-theme
|
||||
;
|
||||
};
|
||||
variables = let
|
||||
cursorSize = 32;
|
||||
in {
|
||||
GTK_THEME = "Gruvbox-Dark";
|
||||
XCURSOR_THEME = "BreezeX-RosePine-Linux";
|
||||
XCURSOR_SIZE = cursorSize;
|
||||
|
||||
HYPRCURSOR_THEME = "BreezeX-RosePine-Linux";
|
||||
HYPRCURSOR_SIZE = cursorSize;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue