Kde: move kwin configs and patches into separate file

This commit is contained in:
Toast 2024-11-09 13:32:55 +01:00
parent 8fcc1d94a5
commit 99e0d3700d
3 changed files with 46 additions and 25 deletions

View file

@ -49,11 +49,6 @@ in {
./patches/libplasma-pr1214.patch ./patches/libplasma-pr1214.patch
]; ];
}; };
kwin = kPrev.kwin.overrideAttrs {
patches = kPrev.kwin.patches ++ [
./patches/kwin-pr6406.patch
];
};
} }
); );
} }
@ -93,16 +88,6 @@ in {
theme = "default"; theme = "default";
colorScheme = "CatppuccinMochaMauve"; colorScheme = "CatppuccinMochaMauve";
}; };
kwin = {
titlebarButtons = {
left = ["on-all-desktops" "keep-above-windows"];
right = ["minimize" "maximize" "close"];
};
virtualDesktops = {
rows = 1;
number = 2;
};
};
input = { input = {
keyboard = { keyboard = {
layouts = [{layout = "es";}]; layouts = [{layout = "es";}];
@ -133,17 +118,7 @@ in {
]; ];
} }
]; ];
shortcuts = {
"kwin" = {
"Switch One Desktop to the Left" = ["Meta+Ctrl+Left"];
"Switch One Desktop to the Right" = ["Meta+Ctrl+Right"];
};
};
configFile = { configFile = {
"kwinrc" = {
"org.kde.kdecoration2"."BorderSize".value = "None";
"TabBox"."LayoutName".value = "thumbnail_grid";
};
"kdeglobals"."General"."AccentColor".value = null; "kdeglobals"."General"."AccentColor".value = null;
"auroraerc"."CatppuccinMocha-Classic"."ButtonSize".value = 0; "auroraerc"."CatppuccinMocha-Classic"."ButtonSize".value = 0;
"plasmanotifyrc"."Notifications"."NormalAlwaysOnTop".value = true; "plasmanotifyrc"."Notifications"."NormalAlwaysOnTop".value = true;

View file

@ -7,6 +7,7 @@
# ./neochat.nix # ./neochat.nix
./konsole.nix ./konsole.nix
./git.nix ./git.nix
./kwin.nix
]; ];
# Enable the kde partition manager # Enable the kde partition manager

View file

@ -0,0 +1,45 @@
{...}: {
nixpkgs.overlays = [
(
final: prev: {
kdePackages = prev.kdePackages.overrideScope (
kFinal: kPrev: {
kwin = kPrev.kwin.overrideAttrs {
patches =
kPrev.kwin.patches
++ [
./patches/kwin-pr6406.patch
];
};
}
);
}
)
];
home-manager.users.toast = {
programs.plasma = {
kwin = {
titlebarButtons = {
left = ["on-all-desktops" "keep-above-windows"];
right = ["minimize" "maximize" "close"];
};
virtualDesktops = {
rows = 1;
number = 2;
};
};
configFile = {
"kwinrc" = {
"org.kde.kdecoration2"."BorderSize".value = "None";
"TabBox"."LayoutName".value = "thumbnail_grid";
};
};
shortcuts = {
"kwin" = {
"Switch One Desktop to the Left" = ["Meta+Ctrl+Left"];
"Switch One Desktop to the Right" = ["Meta+Ctrl+Right"];
};
};
};
};
}