This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/home/hyprland/hyprlock.nix

93 lines
1.6 KiB
Nix

{ config, ... }:
{
# include hyprland configs
home.file.".config/hypr/hyprlock.conf".text = ''
# general
general {
no_fade_in = false
no_fade_out = false
}
# background
background {
monitor =
path = $HOME/Pictures/wallpaper.png
}
# password input
input-field {
monitor =
dots_center = true
dots_size = 0.2
dots_spacing = 0.64
fade_on_empty = true
hide_input = false
placeholder_text = <i> 1 2 3 4 5 ... </i>
position = 0, 150
size = 250, 50
outline_thickness = 3
font_color = rgb(250, 179, 135)
inner_color = rgb(12, 12, 12)
outer_color = rgb(62, 93, 162)
halign = center
valign = bottom
}
# time
label {
monitor =
text = cmd[update:1000] echo "<b><big> $(date +"%H:%M:%S") </big></b>"
position = 0, 20
color = rgb(250, 179, 135)
font_size = 64
font_family = JetBrains Mono Nerd Font 10
halign = center
valign = center
}
# user
label {
monitor =
text = cmd[update:1000] echo "$(date +%A) $(date +%d) $(date +%B)"
position = 0, 0
color = rgb(250, 179, 135)
font_size = 20
font_family = JetBrains Mono Nerd Font 10
halign = center
valign = center
}
# unlock
label {
monitor =
text = 👤 siempie
position = 0, 120
color = rgb(137, 180, 250)
font_size = 14
font_family = JetBrains Mono Nerd Font 10
halign = center
valign = bottom
}
'';
}