From 77f4eba566b07e3055a527e24ee307aae06e8aa5 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 25 Oct 2024 14:47:54 +0100 Subject: [PATCH] Override GTK accent colour Set scheme polarity to "light" --- system/default.nix | 1 + system/home/desktop/default.nix | 25 ++++++++++++++++--------- system/home/desktop/plasma.nix | 15 ++++++--------- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/system/default.nix b/system/default.nix index b0e34598..f67bfb2a 100644 --- a/system/default.nix +++ b/system/default.nix @@ -210,6 +210,7 @@ enable = true; image = ./home/desktop/wallpapers/default.jpg; base16Scheme = "${pkgs.base16-schemes}/share/themes/one-light.yaml"; + polarity = "light"; opacity.popups = 0.8; cursor = { package = pkgs.volantes-cursors; diff --git a/system/home/desktop/default.nix b/system/home/desktop/default.nix index 98e5b9a4..a586afeb 100644 --- a/system/home/desktop/default.nix +++ b/system/home/desktop/default.nix @@ -9,15 +9,18 @@ ./browser/default.nix ./zathura/default.nix ]; - home.packages = with pkgs; [ - wl-clipboard - g4music - remmina - webcord - signal-desktop - whatsapp-for-linux - nomachine-client - ]; + home = { + packages = with pkgs; [ + wl-clipboard + g4music + remmina + webcord + signal-desktop + whatsapp-for-linux + nomachine-client + ]; + file.${config.gtk.gtk2.configLocation}.force = true; + }; services.syncthing.enable = true; programs.mpv.enable = true; gtk = { @@ -28,6 +31,10 @@ name = "Papirus-Light"; }; }; + stylix.targets.gtk.extraCss = with config.lib.stylix.scheme.withHashtag; '' + @define-color accent_color ${base0E-hex}; + @define-color accent_bg_color ${base0E-hex}; + ''; xdg = { mime.enable = true; mimeApps = diff --git a/system/home/desktop/plasma.nix b/system/home/desktop/plasma.nix index 38efdc69..13fe430f 100644 --- a/system/home/desktop/plasma.nix +++ b/system/home/desktop/plasma.nix @@ -7,15 +7,12 @@ { stylix.targets.kde.enable = false; imports = [ inputs.plasma-manager.homeManagerModules.plasma-manager ]; - home = { - packages = with pkgs; [ - protonmail-bridge-gui - libreoffice-qt-fresh - rc2nix - wl-clipboard - ]; - file.${config.gtk.gtk2.configLocation}.force = true; # Stop clashing with KDE - }; + home.packages = with pkgs; [ + protonmail-bridge-gui + libreoffice-qt-fresh + rc2nix + wl-clipboard + ]; services.gpg-agent.pinentryPackage = pkgs.pinentry-qt; programs.plasma = { enable = true;