-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathutils.nix
71 lines (65 loc) · 1.69 KB
/
utils.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
69
70
71
{
config,
lib,
}: let
mkHyprlockMonitor = name: {
monitor = name;
path = "screenshot";
blur_passes = 3;
blur_size = 16;
noise = 0.05;
contrast = 1.0;
brightness = 0.5;
};
in {
mkHyprlockSettings = monitors: let
primaryMonitor = builtins.head monitors;
sansFontName = config.stylix.fonts.sansSerif.name;
in
lib.mkForce {
general.grace = 3;
background = map mkHyprlockMonitor monitors;
input-field = [
{
monitor = primaryMonitor;
capslock_color = "rgba(ffaa0040)";
check_color = "rgba(ffffff40)";
dots_size = 0.25;
dots_spacing = 1.0;
fail_color = "rgb(ff0000)";
fail_text = "$FAIL";
font_color = "rgb(ffffff)";
inner_color = "rgba(00000000)";
outer_color = "rgba(00000000)";
outline_thickness = 0;
placeholder_text = "";
halign = "center";
valign = "bottom";
position = "0, 128";
size = "420, 48";
}
];
label = [
{
monitor = primaryMonitor;
color = "rgba(255, 255, 255, 1)";
font_family = "${sansFontName} Thin";
font_size = 128;
text = ''cmd[update:1000] date "+%-I:%M %P"'';
halign = "left";
valign = "top";
position = "256, -224";
}
{
monitor = primaryMonitor;
color = "rgba(255, 255, 255, 0.5)";
font_family = sansFontName;
font_size = 18;
text = ''cmd[update:1000] date "+%A, %B %-d, %Y"'';
halign = "left";
valign = "top";
position = "256, -448";
}
];
};
}