Commit 8d3d196

HPCesia <me@hpcesia.com>
2025-07-27 16:03:34
feat(desktop): add round corner plugin
1 parent aea189b
Changed files (1)
home
linux
gui
plasma
home/linux/gui/plasma/options/appearance.nix
@@ -1,5 +1,6 @@
 {
   pkgs,
+  lib,
   config,
   wallpapers,
   ...
@@ -9,7 +10,10 @@
     accents = [config.catppuccin.accent];
   };
 in {
-  home.packages = [catppuccin-kde];
+  home.packages = with pkgs; [
+    catppuccin-kde
+    kde-rounded-corners
+  ];
 
   programs.plasma = {
     kscreenlocker.appearance.wallpaper = "${wallpapers}/default_wallpaper";
@@ -46,5 +50,14 @@ in {
       IconSize = 128;
       PreviewSize = 128;
     };
+
+    configFile.kwinrc = {
+      Plugins.kwin4_effect_shapecornersEnabled = true;
+      Round-Corners = lib.mkMerge (lib.map (n: {
+        "${n}UseCustom" = false;
+        "${n}UsePalette" = true;
+        "${n}Palette" = 3;
+      }) ["ActiveOutline" "ActiveOutline" "InactiveOutline" "InactiveSecondOutline"]);
+    };
   };
 }