Nix: add blur settings and no_fade_in

This commit is contained in:
retchohrips 2024-02-21 21:33:46 -05:00 committed by Mihai Fufezan
parent 272fc359ad
commit f411d9d632
1 changed files with 55 additions and 0 deletions

View File

@ -37,6 +37,11 @@ in {
type = bool; type = bool;
default = true; default = true;
}; };
no_fade_in = mkOption {
description = "Do not fade in";
type = bool;
default = false;
};
}; };
backgrounds = mkOption { backgrounds = mkOption {
@ -60,6 +65,48 @@ in {
type = str; type = str;
default = "rgba(25, 20, 20, 1.0)"; 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 = [ default = [
@ -256,6 +303,7 @@ in {
disable_loading_bar = ${boolToString cfg.general.disable_loading_bar} disable_loading_bar = ${boolToString cfg.general.disable_loading_bar}
grace = ${toString cfg.general.grace} grace = ${toString cfg.general.grace}
hide_cursor = ${boolToString cfg.general.hide_cursor} hide_cursor = ${boolToString cfg.general.hide_cursor}
no_fade_in = ${boolToString cfg.general.no_fade_in}
} }
${builtins.concatStringsSep "\n" (map (background: '' ${builtins.concatStringsSep "\n" (map (background: ''
@ -263,6 +311,13 @@ in {
monitor = ${background.monitor} monitor = ${background.monitor}
path = ${background.path} path = ${background.path}
color = ${background.color} 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)} cfg.backgrounds)}