summaryrefslogtreecommitdiff
path: root/modules/home-manager/hypr/hyprlock.nix
blob: dfaee43d5f719d122f1ab737e67cb1ab25d6e611 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ pkgs, lib, config, ... }:

{
  config = lib.mkIf config.hyprland.enable {
    programs.hyprlock = {
      enable = true;

      settings = {
        general = {
          disable_loading_bar = true;
          hide_cursor = false;
          no_fade_in = true;
        };

        background = [
          {
            path = "screenshot";
            # path = ~/.config/hypr/wallpaper_effects/.wallpaper_current;
            blur_passes = 4;
            blur_size = 7;
          }
        ];

        input-field = [
          {
            size = "200, 50";
            position = "0, 0";
            fade_on_empty = false;
            font_color = "rgb(212, 190, 152)";
            inner_color = "rgb(29, 32, 33)";
            outer_color = "rgb(125, 174, 163)";
            outline_thickness = 2;
            rounding = 0;
            placeholder_text = "🔒🔒🔒";
          }
        ];

        animations = [
          {
            enabled = false;
          }
        ];
      };
    };
  };
}