summaryrefslogtreecommitdiff
path: root/modules/home-manager/hypr/hyprlock.nix
blob: 675773a1df5e4eeb0de956c1b00cfd686646ed34 (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 = false;
          hide_cursor = false;
          no_fade_in = true;
        };

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

        input-field = [
          {
            size = "200, 50";
            position = "0, 0";
            fade_on_empty = true;
            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;
          }
        ];
      };
    };
  };
}