feat(kwin): add strength options for blur effect (#382)
Some checks failed
GitHub Pages Docs Generation / publish (ubuntu-latest) (push) Has been cancelled

Co-authored-by: Heitor Augusto <IAm.HeitorALN@proton.me>
This commit is contained in:
Patrick Auernig 2024-10-12 04:28:34 +02:00 committed by GitHub
parent bc14b17bff
commit 0b5b67518e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;