cleanup and rename
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 30s

This commit is contained in:
Satria 2026-03-25 18:34:03 +07:00
commit ee28bb7c42
15 changed files with 71 additions and 73 deletions

View file

@ -0,0 +1,111 @@
{ rice, ... }: {
programs.hyprlock = {
enable = true;
settings = {
general = {
ignore_empty_input = true;
hide_cursor = false;
};
animation = {
bezier = [
"easeOutQuint,0.23,1,0.32,1"
"quick,0.15,0,0.1,1"
"overshot,0.05,0.9,0.1,1.1"
];
animation = [
"fade, 1, 3.5, easeOutQuint"
];
};
background = [
{
path = "screenshot";
brightness = 0.5;
blur_passes = 3;
blur_size = 2;
}
];
label = [
# {
# text = "<span> 󰌾 </span>";
# color = "$subtext1";
# font_size = 64;
# position = "0, 0";
# shadow_passes = 1;
# shadow_boost = 0.5;
# halign = "center";
# valign = "center";
# }
{
text = "cmd[update:1000] echo \"<span>$(date +'%I:%M')</span>\"";
color = "rgba(216, 222, 233, 0.7)";
font_size = "120";
font_family = rice.font;
position = "0, 240";
halign = "center";
valign = "center";
}
{
text = "cmd[update:1000] echo \"$(date +'%A, %d %B')\"";
color = "rgba(216, 222, 233, 0.7)";
font_size = "30";
font_family = rice.font;
position = "0, 105";
halign = "center";
valign = "center";
}
{
text = "󰤄 Hibernate";
color = "rgba(255, 255, 255, 0.7)";
font_size = "10";
onclick = "systemctl hibernate";
font_family = rice.font;
position = "${toString (rice.gap.outer + 12)}, -${toString (rice.gap.outer + 8)}";
halign = "left";
valign = "top";
}
{
text = "cmd[update:1000] echo \" $(upower -i $(upower -e | grep 'BAT') | grep 'percentage' | awk '{print $2}' | sed 's/%//')%\"";
color = "rgba(255, 255, 255, 0.7)";
font_size = "10";
font_family = rice.font;
position = "-${toString (rice.gap.outer + 12)}, -${toString (rice.gap.outer + 8)}";
halign = "right";
valign = "top";
}
];
input-field = [
{
size = "200, 50";
position = "0, ${toString (rice.gap.outer + (if rice.bar.top then 0 else 60))}";
valign = "bottom";
halign = "center";
dots_center = true;
fade_on_empty = false;
outline_thickness = rice.borders.size;
shadow_passes = 8;
rounding = rice.borders.rounded;
outer_color = if rice.borders.colored then "$accent" else "$overlay0";
inner_color = "$crust";
font_color = "$text";
placeholder_text = "󰌾 Type your password";
font_family = rice.font;
# font_family = "monospace";
capslock_color = "$yellow";
check_color = "$green";
fail_color = "$red";
fail_text = " $FAIL ($ATTEMPTS)";
}
];
};
};
}