-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhyprlock.nix
69 lines (59 loc) · 1.87 KB
/
hyprlock.nix
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{ wallpaperPath, ... }:
{
xdg.configFile."hypr/hyprlock.conf" = {
enable = true;
text = ''
background {
monitor =
path = ${wallpaperPath}
blur_passes = 4
blur_size = 2
noise = 0.01
contrast = 1
brightness = 0.4
vibrancy = 0.17
vibrancy_darkness = 0.0
}
input-field {
monitor =
size = 300, 50
outline_thickness = 3
dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true
dots_rounding = -1 # -1 default circle, -2 follow input-field rounding
outer_color = rgb(151515)
inner_color = rgb(200, 200, 200)
font_color = rgb(10, 10, 10)
fade_on_empty = false
fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered.
placeholder_text = <i>Input Password...</i> # Text rendered in the input box when it's empty.
hide_input = false
rounding = -1 # -1 means complete rounding (circle/oval)
check_color = rgb(204, 136, 34)
fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i> # can be set to empty
fail_transition = 300 # transition time in ms between normal outer_color and fail_color
capslock_color = rgb(200, 16, 16)
numlock_color = -1
bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above)
invert_numlock = false # change color if numlock is off
swap_font_color = false # see below
position = 0, -20
halign = center
valign = center
}
label {
monitor =
text = $TIME
color = rgba(229, 145, 181, 1)
font_size = 80
font_family = Noto Sans
position = 0, 200
halign = center
valign = center
}
'';
# target = ${builtins.path "./hypr/hyprlock.conf"};
};
}