MyNixOS website logo

Hyprlock configuration written in Nix. Entries with the same key should be written as lists. Variables' and colors' names should be quoted. See https://wiki.hypr.land/Hypr-Ecosystem/hyprlock/ for more examples.

Declarations
Type
Hyprlock configuration value
Default
{ }
Example
{
  general = {
    hide_cursor = true;
    ignore_empty_input = true;
  };

  animations = {
    enabled = true;
    fade_in = {
      duration = 300;
      bezier = "easeOutQuint";
    };
    fade_out = {
      duration = 300;
      bezier = "easeOutQuint";
    };
  };

  background = [
    {
      path = "screenshot";
      blur_passes = 3;
      blur_size = 8;
    }
  ];

  input-field = [
    {
      size = "200, 50";
      position = "0, -80";
      monitor = "";
      dots_center = true;
      fade_on_empty = false;
      font_color = "rgb(202, 211, 245)";
      inner_color = "rgb(91, 96, 120)";
      outer_color = "rgb(24, 25, 38)";
      outline_thickness = 5;
      placeholder_text = '\'<span foreground="##cad3f5">Password...</span>'\';
      shadow_passes = 2;
    }
  ];
}