update hyprlock config to the hm module

This commit is contained in:
jacekpoz 2024-06-06 11:39:13 +02:00
parent e7f270abef
commit 9a1bfec3bc
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -24,15 +24,15 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ inputs.hyprlock.homeManagerModules.default ];
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
package = inputs.hyprlock.packages.${pkgs.system}.hyprlock; package = inputs.hyprlock.packages.${pkgs.system}.hyprlock;
settings = {
general = { general = {
grace = 2; grace = 2;
hide_cursor = true;
}; };
backgrounds = [ background = [
{ {
color = "rgba(120f1177)"; color = "rgba(120f1177)";
path = "screenshot"; path = "screenshot";
@ -41,12 +41,9 @@ in {
} }
]; ];
input-fields = [ input-field = [
{ {
size = { size = "600, 50";
width = 600;
height = 50;
};
outline_thickness = 3; outline_thickness = 3;
dots_size = 0.1; dots_size = 0.1;
dots_spacing = 0.3; dots_spacing = 0.3;
@ -54,25 +51,19 @@ in {
inner_color = "rgba(120f1111)"; inner_color = "rgba(120f1111)";
font_color = "rgba(d1c2cbff)"; font_color = "rgba(d1c2cbff)";
fade_on_empty = true; fade_on_empty = true;
position = { position = "0, 20";
x = 0;
y = 20;
};
halign = "center"; halign = "center";
valign = "center"; valign = "center";
} }
]; ];
labels = [ label = [
{ {
# clock # clock
text = "$TIME"; text = "$TIME";
color = text_color; color = text_color;
font_size = 65; font_size = 65;
position = { position = "0, 300";
x = 0;
y = 300;
};
halign = "center"; halign = "center";
valign = "center"; valign = "center";
} }
@ -81,10 +72,7 @@ in {
text = "cmd[update:1000] echo \"$(cat /sys/class/power_supply/BAT0/capacity)%\""; text = "cmd[update:1000] echo \"$(cat /sys/class/power_supply/BAT0/capacity)%\"";
color = text_color; color = text_color;
font_size = 30; font_size = 30;
position = { position = "0, 200";
x = 0;
y = 200;
};
halign = "center"; halign = "center";
valign = "center"; valign = "center";
} }
@ -92,4 +80,5 @@ in {
}; };
}; };
}; };
};
} }