From bf223cf347a1061db20b90395ed5c1675023607b Mon Sep 17 00:00:00 2001 From: chn Date: Sun, 25 May 2025 14:03:57 +0800 Subject: [PATCH] Revert "remove wallpaper desktopeffect theme etc" This reverts commit 5b6a2623bc1e4eba1e71e79a653beb68ddd32642. --- modules/user/chn/plasma/theme.nix | 45 +++++++++++++++++++++++++++ modules/user/chn/plasma/wallpaper.nix | 21 +++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 modules/user/chn/plasma/theme.nix create mode 100644 modules/user/chn/plasma/wallpaper.nix diff --git a/modules/user/chn/plasma/theme.nix b/modules/user/chn/plasma/theme.nix new file mode 100644 index 00000000..71b59b37 --- /dev/null +++ b/modules/user/chn/plasma/theme.nix @@ -0,0 +1,45 @@ +inputs: +{ + config = inputs.lib.mkIf (builtins.elem inputs.config.nixos.model.type [ "desktop" "server" ]) + { + home-manager.users.chn.config = + { + programs.plasma = + { + workspace = + { + theme = "breeze-light"; + colorScheme = "BreezeLight"; + cursor.theme = "breeze_cursors"; + lookAndFeel = "org.kde.klassylighttraditional.desktop"; + # ~/.config/kdeglobals [Icons] + iconTheme = "klassy"; + }; + configFile = + { + kwinrc = + { + Effect-blur.BlurStrength.value = 10; + Effect-kwin4_effect_translucency.MoveResize.value = 75; + Effect-wobblywindows = + { + AdvancedMode.value = true; + Drag.value = 85; + Stiffness.value = 10; + WobblynessLevel.value = 1; + ResizeWobble.value = false; + }; + Plugins = + { + blurEnabled.value = true; + kwin4_effect_dimscreenEnabled.value = true; + kwin4_effect_translucencyEnabled.value = true; + padding.value = 4; + wobblywindowsEnabled.value = true; + }; + }; + }; + }; + }; + }; +} diff --git a/modules/user/chn/plasma/wallpaper.nix b/modules/user/chn/plasma/wallpaper.nix new file mode 100644 index 00000000..182be003 --- /dev/null +++ b/modules/user/chn/plasma/wallpaper.nix @@ -0,0 +1,21 @@ +inputs: +{ + config.home-manager.users.chn.config.programs.plasma.configFile = + let + inherit (inputs.topInputs) nixos-wallpaper; + wallpaper = + { + pc = "${nixos-wallpaper}/pixiv-117612023.png"; + }.${inputs.config.nixos.model.hostname} or "${nixos-wallpaper}/pixiv-96734339-x2.png"; + in + { + # "plasma-org.kde.plasma.desktop-appletsrc" = + # { + # "Containments/1".wallpaperplugin.value = "a2n.blur"; + # "Containments/1/Wallpaper/a2n.blur/General".Image.value = wallpaper; + # }; + kscreenlockerrc."Greeter/Wallpaper/org.kde.image/General" = + { Image.value = wallpaper; PreviewImage.value = wallpaper; }; + kdeglobals.General.accentColorFromWallpaper.value = true; + }; +}