Files
nix-config/modules/home/hyprlock.nix

143 lines
3.8 KiB
Nix

{
programs.hyprlock = {
enable = true;
settings = {
background = {
path = "./images/sunset-rocks.png";
blur_passes = 2;
contrast = 1;
brightness = 0.5;
vibrancy = 0.2;
vibrancy_darkness = 0.2;
};
# GENERAL
general = {
no_fade_in = true;
no_fade_out = true;
hide_cursor = false;
grace = 0;
disable_loading_bar = true;
};
# INPUT FIELD
input-field = {
monitor = "";
size = "250, 60";
outline_thickness = 2;
dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.35; # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true;
outer_color = "rgba(0, 0, 0, 0)";
inner_color = "rgba(0, 0, 0, 0.2)";
font_color = "$foreground";
fade_on_empty = false;
rounding = -1;
check_color = "rgb(204, 136, 34)";
placeholder_text = "<i><span foreground=\"##cdd6f4\">Input Password...</span></i>";
hide_input = false;
position = "0, -200";
halign = "center";
valign = "center";
};
# DATE
label = [
{
monitor = "";
text = "cmd[update:1000] echo \"$(date +\"%A, %B %d\")\"";
color = "rgba(242, 243, 244, 0.75)";
font_size = 22;
font_family = "JetBrains Mono";
position = "0, 300";
halign = "center";
valign = "center";
}
# TIME
{
monitor = "";
text = "cmd[update:1000] echo \"$(date +\"%-I:%M\")\"";
color = "rgba(242, 243, 244, 0.75)";
font_size = 95;
font_family = "JetBrains Mono Extrabold";
position = "0, 200";
halign = "center";
valign = "center";
}
# CURRENT SONG
{
monitor = "";
text = "cmd[update:1000] echo \"$(/home/justin/Documents/Scripts/whatsong.sh)\"";
color = "$foreground";
font_size = 18;
font_family = "Metropolis Light, Font Awesome 6 Free Solid";
position = "0, 50";
halign = "center";
valign = "bottom";
}
{
monitor = "";
text = "cmd[update:1000] echo \"$(/home/justin/Documents/Scripts/whoami.sh)\"";
color = "$foreground";
font_size = 14;
font_family = "JetBrains Mono";
position = "0, -10";
halign = "center";
valign = "top";
}
{
monitor = "";
text = "cmd[update:1000] echo \"$(/home/justin/Documents/Scripts/battery.sh)\"";
color = "$foreground";
font_size = 24;
font_family = "JetBrains Mono";
position = "-90, -10";
halign = "right";
valign = "top";
}
{
monitor = "";
text = "cmd[update:1000] echo \"$(/home/justin/Documents/Scripts/network-status.sh)\"";
color = "$foreground";
font_size = 24;
font_family = "JetBrains Mono";
position = "-20, -10";
halign = "right";
valign = "top";
}
];
# Profile Picture
image = [
{
monitor = "";
path = "/home/justin/Pictures/profile_pictures/justin_square.png";
size = 100;
border_size = 2;
border_color = "$foreground";
position = "0, -100";
halign = "center";
valign = "center";
}
# Desktop Environment
{
monitor = "";
path = "/home/justin/Pictures/profile_pictures/hypr.png";
size = 75;
border_size = 2;
border_color = "$foreground";
position = "-50, 50";
halign = "right";
valign = "bottom";
}
];
};
};
}