Kde: change gtk2 config location

This commit is contained in:
Toast 2023-11-12 23:25:23 +01:00
parent 37dcf27b05
commit 749476efcc

View file

@ -85,36 +85,47 @@ in
environment.systemPackages = [ breezeTint lookAndFeel plasmaDefaults ]; environment.systemPackages = [ breezeTint lookAndFeel plasmaDefaults ];
# Plasma configs should be on all users # Plasma configs should be on all users
home-manager.sharedModules = [{ home-manager.sharedModules = [
imports = [ flakeSelf.inputs.plasma-manager.homeManagerModules.plasma-manager ]; (
gtk = { { config, ... }:
enable = true; let gtk2rc = "${config.xdg.configHome}/gtk-2.0/gtkrc"; in
cursorTheme = { package = pkgs.breeze-qt5; name = "breeze_cursors"; }; {
iconTheme = { package = pkgs.breeze-icons; name = "breeze-dark"; }; gtk.gtk2.configLocation = gtk2rc;
theme = { package = pkgs.breeze-gtk; name = "Breeze"; }; # Kde has an annoying habit of overwriting the gtk2 config file
# Gtk2 doesn't have a dark mode, so I just tell gtk 3 and 4 to use the dark variant home.file."${gtk2rc}".force = true;
gtk3.extraConfig.gtk-application-prefer-dark-theme = true; }
gtk4.extraConfig.gtk-application-prefer-dark-theme = true; )
}; {
programs.plasma = { imports = [ flakeSelf.inputs.plasma-manager.homeManagerModules.plasma-manager ];
enable = true; gtk = {
workspace.clickItemTo = "select"; enable = true;
shortcuts = { cursorTheme = { package = pkgs.breeze-qt5; name = "breeze_cursors"; };
"kwin" = { iconTheme = { package = pkgs.breeze-icons; name = "breeze-dark"; };
"Switch One Desktop to the Left" = [ "Meta+Ctrl+Left" ]; theme = { package = pkgs.breeze-gtk; name = "Breeze"; };
"Switch One Desktop to the Right" = [ "Meta+Ctrl+Right" ]; # Gtk2 doesn't have a dark mode, so I just tell gtk 3 and 4 to use the dark variant
}; gtk3.extraConfig.gtk-application-prefer-dark-theme = true;
gtk4.extraConfig.gtk-application-prefer-dark-theme = true;
}; };
configFile = { programs.plasma = {
"kwinrc" = { enable = true;
"Desktops" = { workspace.clickItemTo = "select";
"Number" = 2; shortcuts = {
"Rows" = 1; "kwin" = {
"Switch One Desktop to the Left" = [ "Meta+Ctrl+Left" ];
"Switch One Desktop to the Right" = [ "Meta+Ctrl+Right" ];
}; };
"TabBox"."LayoutName" = "thumbnail_grid";
}; };
"plasmanotifyrc"."Notifications"."NormalAlwaysOnTop" = true; configFile = {
"kwinrc" = {
"Desktops" = {
"Number" = 2;
"Rows" = 1;
};
"TabBox"."LayoutName" = "thumbnail_grid";
};
"plasmanotifyrc"."Notifications"."NormalAlwaysOnTop" = true;
};
}; };
}; }
}]; ];
} }