From f411d9d632182fe7b23a2796698e6f857badf0af Mon Sep 17 00:00:00 2001 From: retchohrips <44993244+retchohrips@users.noreply.github.com> Date: Wed, 21 Feb 2024 21:33:46 -0500 Subject: [PATCH] Nix: add blur settings and no_fade_in --- nix/hm-module.nix | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/nix/hm-module.nix b/nix/hm-module.nix index f4e4c39..4f6b1d7 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -37,6 +37,11 @@ in { type = bool; default = true; }; + no_fade_in = mkOption { + description = "Do not fade in"; + type = bool; + default = false; + }; }; backgrounds = mkOption { @@ -60,6 +65,48 @@ in { type = str; default = "rgba(25, 20, 20, 1.0)"; }; + + blur_size = mkOption { + description = "Blur size"; + type = int; + default = 8; + }; + + blur_passes = mkOption { + description = "Blur passes"; + type = int; + default = 0; + }; + + noise = mkOption { + description = "Noise applied to blur"; + type = float; + default = 0.0117; + }; + + contrast = mkOption { + description = "Contrast applied to blur"; + type = float; + default = 0.8917; + }; + + brightness = mkOption { + description = "Brightness applied to blur"; + type = float; + default = 0.8172; + }; + + vibrancy = mkOption { + description = "Vibrancy applied to blur"; + type = float; + default = 0.1686; + }; + + vibrancy_darkness = mkOption { + description = "Vibrancy darkness applied to blur"; + type = float; + default = 0.05; + }; }; }); default = [ @@ -256,6 +303,7 @@ in { disable_loading_bar = ${boolToString cfg.general.disable_loading_bar} grace = ${toString cfg.general.grace} hide_cursor = ${boolToString cfg.general.hide_cursor} + no_fade_in = ${boolToString cfg.general.no_fade_in} } ${builtins.concatStringsSep "\n" (map (background: '' @@ -263,6 +311,13 @@ in { monitor = ${background.monitor} path = ${background.path} color = ${background.color} + blur_size = ${toString background.blur_size} + blur_passes = ${toString background.blur_passes} + noise = ${toString background.noise} + contrast = ${toString background.contrast} + brightness = ${toString background.brightness} + vibrancy = ${toString background.vibrancy} + vibrancy_darkness = ${toString background.vibrancy_darkness} } '') cfg.backgrounds)}