Migrate config (frues-pc machine for now) from https://git.peprolinbot.com/peprolinbot/nixos-config, with improvements
This commit is contained in:
parent
ebd178b0a5
commit
7606f9e051
66 changed files with 9465 additions and 73 deletions
73
users/pedro/home-configuration/hyprland/hyprlock.nix
Normal file
73
users/pedro/home-configuration/hyprland/hyprlock.nix
Normal file
|
@ -0,0 +1,73 @@
|
|||
{config, ...}: {
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = let
|
||||
colors = with config.lib.stylix.colors; {
|
||||
text = base05;
|
||||
accent = base0E;
|
||||
warning = base0A;
|
||||
};
|
||||
in {
|
||||
general = {
|
||||
hide_cursor = true;
|
||||
};
|
||||
|
||||
background = {
|
||||
path = "~/.config/hypr/wallpaper.png";
|
||||
blur_passes = 2;
|
||||
};
|
||||
|
||||
label = [
|
||||
# Time
|
||||
{
|
||||
text = "cmd[update:30000] echo \"<b><big> $(date +\"%R\") </big></b>\"";
|
||||
color = "rgb(${colors.text})";
|
||||
font_size = 110;
|
||||
shadow_passes = 3;
|
||||
shadow_size = 3;
|
||||
|
||||
position = "0, -100";
|
||||
halign = "center";
|
||||
valign = "top";
|
||||
}
|
||||
|
||||
# Date
|
||||
{
|
||||
text = "cmd[update:43200000] echo \"$(date +\"%A, %d %B %Y\")\"";
|
||||
color = "rgb(${colors.text})";
|
||||
font_size = 18;
|
||||
position = "0, -300";
|
||||
halign = "center";
|
||||
valign = "top";
|
||||
}
|
||||
];
|
||||
|
||||
# User Avatar
|
||||
image = {
|
||||
path = "~/.face.png";
|
||||
size = 125;
|
||||
border_color = "rgb(${colors.accent})";
|
||||
|
||||
position = "0, -450";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
|
||||
input-field = {
|
||||
size = "300, 60";
|
||||
outline_thickness = 4;
|
||||
dots_size = 0.2;
|
||||
dots_spacing = 0.4;
|
||||
dots_center = true;
|
||||
fade_on_empty = false;
|
||||
placeholder_text = "<span foreground=\"##${colors.text}\"><i> Logged in as </i><span foreground=\"##${colors.accent}\">$USER</span></span>";
|
||||
hide_input = false;
|
||||
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
|
||||
capslock_color = "rgb(${colors.warning})";
|
||||
position = "0, -100";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue