Fix GTK theme

This commit is contained in:
Erwin Boskma 2024-02-09 20:43:09 +01:00
parent 8f5c2f90a2
commit 2be4b97177
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
2 changed files with 30 additions and 27 deletions

View file

@ -11,6 +11,11 @@ let
homeCfg = config.home-manager.users.erwin;
bt = config.eboskma.bluetooth;
gtkTheme = {
name = "io.elementary.stylesheet.slate";
package = pkgs.pantheon.elementary-gtk-theme;
};
ewwDaemon =
let
path = lib.makeBinPath (
@ -248,7 +253,7 @@ in
pointerCursor = {
name = "elementary";
package = pkgs.pantheon.elementary-gtk-theme;
package = gtkTheme.package;
gtk.enable = true;
x11.enable = true;
};
@ -294,6 +299,12 @@ in
enable = true;
createDirectories = true;
};
configFile."gtk-4.0/gtk.css" = lib.mkForce {
text = ''
@import url("file://${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/gtk-dark.css");
'';
};
};
i18n.inputMethod = {
@ -313,10 +324,7 @@ in
gtk = {
enable = true;
theme = {
name = "elementary";
package = pkgs.pantheon.elementary-gtk-theme;
};
theme = gtkTheme;
iconTheme = {
name = "elementary";

View file

@ -9,20 +9,10 @@ with lib;
let
cfg = config.eboskma.users.erwin;
# remoteSessionScript = pkgs.writeShellScriptBin "remote-session" ''
# ${pkgs.xorg.xrandr}/bin/xrandr --output DP-0 --mode 2560x1440
# ${pkgs.xorg.xrandr}/bin/xrandr --output DP-4 --mode 2560x1440 --right-of DP-0
# ${pkgs.nitrogen}/bin/nitrogen --head=0 --set-auto ${toString ./wallpapers/jwst-carina-cosmic-cliffs-nircam-2560.png}
# ${pkgs.nitrogen}/bin/nitrogen --head=1 --set-auto ${toString ./wallpapers/jwst-southern-ring-nircam-miri-side-by-side-2560.png}
# systemctl --user restart polybar
# '';
# localSessionScript = pkgs.writeShellScriptBin "local-session" ''
# ${pkgs.xorg.xrandr}/bin/xrandr --output DP-0 --mode 3840x2160
# ${pkgs.xorg.xrandr}/bin/xrandr --output DP-4 --mode 3840x2160 --right-of DP-0
# ${pkgs.nitrogen}/bin/nitrogen --head=0 --set-auto ${toString ./wallpapers/jwst-carina-cosmic-cliffs-nircam-3840.png}
# ${pkgs.nitrogen}/bin/nitrogen --head=1 --set-auto ${toString ./wallpapers/jwst-southern-ring-nircam-miri-side-by-side-3840.png}
# systemctl --user restart polybar
# '';
gtkTheme = {
name = "io.elementary.stylesheet.slate";
package = pkgs.pantheon.elementary-gtk-theme;
};
ewwDaemon =
let
@ -310,7 +300,7 @@ in
pointerCursor = {
name = "elementary";
package = pkgs.pantheon.elementary-gtk-theme;
package = gtkTheme.package;
gtk.enable = true;
x11.enable = true;
};
@ -351,6 +341,12 @@ in
enable = true;
createDirectories = true;
};
configFile."gtk-4.0/gtk.css" = lib.mkForce {
text = ''
@import url("file://${gtkTheme.package}/share/themes/${gtkTheme.name}/gtk-4.0/gtk-dark.css");
'';
};
};
dconf.settings = {
@ -361,10 +357,7 @@ in
gtk = {
enable = true;
theme = {
name = "elementary";
package = pkgs.pantheon.elementary-gtk-theme;
};
theme = gtkTheme;
iconTheme = {
name = "elementary";
@ -379,9 +372,11 @@ in
};
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = 1;
# gtk-cursor-theme-name = "elementary";
gtk4 = {
extraConfig = {
gtk-application-prefer-dark-theme = 1;
# gtk-cursor-theme-name = "elementary";
};
};
};