From 0b5b67518ef569f8f7de81533b2279bc63339c3c Mon Sep 17 00:00:00 2001 From: Patrick Auernig <3198362+valeth@users.noreply.github.com> Date: Sat, 12 Oct 2024 04:28:34 +0200 Subject: [PATCH] feat(kwin): add strength options for blur effect (#382) Co-authored-by: Heitor Augusto --- modules/kwin.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/kwin.nix b/modules/kwin.nix index 0131173..c28f0d9 100644 --- a/modules/kwin.nix +++ b/modules/kwin.nix @@ -240,6 +240,18 @@ in default = null; description = "Blurs the background behind semi-transparent windows."; }; + strength = mkOption { + type = with types; nullOr (ints.between 1 15); + default = null; + example = 5; + description = "Controls the intensity of the blur"; + }; + noiseStrength = mkOption { + type = with types; nullOr (ints.between 0 14); + default = null; + example = 8; + description = "Adds noise to the effect"; + }; }; snapHelper.enable = mkOption { type = with types; nullOr bool; @@ -674,6 +686,10 @@ in }) (mkIf (cfg.kwin.effects.blur.enable != null) { Plugins.blurEnabled = cfg.kwin.effects.blur.enable; + Effect-blur = { + BlurStrength = cfg.kwin.effects.blur.strength; + NoiseStrength = cfg.kwin.effects.blur.noiseStrength; + }; }) (mkIf (cfg.kwin.effects.dimInactive.enable != null) { Plugins.diminactiveEnabled = cfg.kwin.effects.dimInactive.enable;