mirror of
https://github.com/nix-community/plasma-manager.git
synced 2024-11-26 00:09:32 +03:00
feat(kwin): add strength options for blur effect (#382)
Some checks failed
GitHub Pages Docs Generation / publish (ubuntu-latest) (push) Has been cancelled
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:
parent
bc14b17bff
commit
0b5b67518e
@ -240,6 +240,18 @@ in
|
|||||||
default = null;
|
default = null;
|
||||||
description = "Blurs the background behind semi-transparent windows.";
|
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 {
|
snapHelper.enable = mkOption {
|
||||||
type = with types; nullOr bool;
|
type = with types; nullOr bool;
|
||||||
@ -674,6 +686,10 @@ in
|
|||||||
})
|
})
|
||||||
(mkIf (cfg.kwin.effects.blur.enable != null) {
|
(mkIf (cfg.kwin.effects.blur.enable != null) {
|
||||||
Plugins.blurEnabled = cfg.kwin.effects.blur.enable;
|
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) {
|
(mkIf (cfg.kwin.effects.dimInactive.enable != null) {
|
||||||
Plugins.diminactiveEnabled = cfg.kwin.effects.dimInactive.enable;
|
Plugins.diminactiveEnabled = cfg.kwin.effects.dimInactive.enable;
|
||||||
|
Loading…
Reference in New Issue
Block a user