fix(gnome): update gtk theme names

This commit is contained in:
514fpv 2024-07-29 14:19:20 +08:00
parent 250bd3545f
commit 7f1f67e956
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
3 changed files with 14 additions and 9 deletions

View file

@ -3,6 +3,7 @@
, config
, ... }: with lib; let
cfg = config.passthrough.gnome;
bg = ../../catppuccin/flake.png;
in mkIf cfg.enable {
dconf.settings = let
p = "org/gnome";
@ -26,18 +27,18 @@ in mkIf cfg.enable {
"${pd}/background" = {
color-shading-type = "solid";
picture-options = "zoom";
picture-uri = "file://${../../../share/catppuccin-nix.png}";
picture-uri-dark = "file://${../../../share/catppuccin-nix.png}";
picture-uri = "file://${bg}";
picture-uri-dark = "file://${bg}";
primary-color = "#000000000000";
secondary-color = "#000000000000";
};
"${pd}/interface" = {
color-scheme = "prefer-dark";
cursor-theme = "Catppuccin-Frappe-Dark-Cursors";
cursor-theme = "catppuccin-mocha-dark-cursors";
font-antialiasing = "grayscale";
font-hinting = "slight";
gtk-theme = "Catppuccin-Frappe-Compact-Pink-Dark";
gtk-theme = "catppuccin-mocha-pink-compact";
icon-theme = "Papirus-Dark";
};
@ -45,7 +46,7 @@ in mkIf cfg.enable {
color-shading-type = "solid";
lock-enabled = false;
picture-options = "zoom";
picture-uri = "file://${../../../share/catppuccin-nix.png}";
picture-uri = "file://${bg}";
primary-color = "#000000000000";
secondary-color = "#000000000000";
};
@ -54,10 +55,11 @@ in mkIf cfg.enable {
action-double-click-titlebar = "toggle-maximize";
action-middle-click-titlebar = "minimize";
button-layout = "close,minimize,maximize:appmenu";
resize-with-right-button = true;
};
"${ptlp}" = {
default = "71a9971e-e829-43a9-9b2f-4565c855d664";
default = "95894cfd-82f7-430d-af6e-84d168bc34f5";
list = [
"de8a9081-8352-4ce4-9519-5de655ad9361"
"71a9971e-e829-43a9-9b2f-4565c855d664"
@ -162,7 +164,7 @@ in mkIf cfg.enable {
welcome-dialog-last-shown-version = "45.3";
};
"${pse}/user-theme".name = "Catppuccin-Frappe-Compact-Pink-Dark";
"${pse}/user-theme".name = "catppuccin-mocha-pink-compact";
"${pse}/dash-to-dock" = {
background-opacity = 0.80000000000000004;

View file

@ -10,7 +10,10 @@ in mkIf cfg.enable {
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
hardware.pulseaudio.enable = false;
users.home.persist.directories = [ ];
users.home.persist.directories = [
".config/dconf"
];
environment.persistence."/nix/persist/fhs".directories = [ ];
}

View file

@ -13,7 +13,7 @@ in {
config = {
users.homeModules = [
# this module passes gnome configuration to home-manager
{ passthrough.gnome= cfg; }
{ passthrough.gnome = cfg; }
];
specialisation.nognome = with cfg; mkIf enable {