Files
dotfiles/config/hypr/hyprlock.conf
2025-10-17 19:49:16 +02:00

220 lines
4.5 KiB
Plaintext

# sample hyprlock.conf
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
#
# rendered text in all widgets supports pango markup (e.g. <b> or <i> tags)
# ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks
#
# shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace
#
# you can get started by copying this config to ~/.config/hypr/hyprlock.conf
#
$font = Monospace
general {
hide_cursor = true
}
# uncomment to enable fingerprint authentication
# auth {
# fingerprint {
# enabled = true
# ready_message = Scan fingerprint to unlock
# present_message = Scanning...
# retry_delay = 250 # in milliseconds
# }
# }
animations {
enabled = true
bezier = linear, 1, 1, 0, 0
animation = fadeIn, 1, 5, linear
animation = fadeOut, 1, 5, linear
animation = inputFieldDots, 1, 2, linear
}
image {
monitor =
shadow_passes = 2
path = /home/minz/.config/hypr/LockMiku.png
size = 150
rounding = 0 # no rounding
position = 0, 200
halign = center
valign = center
border_size = 0
}
label {
monitor =
shadow_passes = 2
text = Hello $USER
color = rgba(200, 200, 200, 1.0)
font_size = 25
font_family = Noto Sans
position = 0, 80
halign = center
valign = center
}
background {
monitor =
path = screenshot
blur_passes = 2
vibrancy = 1
}
input-field {
monitor =
size = 20%, 5%
outline_thickness = 1
inner_color = rgba(50, 50, 50, 0.8) # no fill
outer_color = rgba(33ccffee) rgba(00ff99ee) 45deg
check_color = rgba(00ff99ee) rgba(ff6633ee) 120deg
fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg
font_color = rgb(143, 143, 143)
fade_on_empty = false
rounding = 15
font_family = $font
placeholder_text =
fail_text = $PAMFAIL
# uncomment to use a letter instead of a dot to indicate the typed password
dots_text_format = 💕
# dots_size = 0.4
dots_spacing = 0.3
# uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator)
#hide_input = true
position = 0, 0
halign = center
valign = center
}
# TIME
#label {
# monitor =
# text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock#/#variable-substitution
# font_size = 90
# font_family = $font
# position = -30, 0
# halign = right
# valign = top
#}
# TIME
label {
monitor =
text = cmd[update:60000] date +"%H:%M"
font_size = 90
font_family = $font
position = -30, 0
halign = right
valign = top
}
# DATE
label {
monitor =
text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds
font_size = 25
font_family = $font
position = -30, -150
halign = right
valign = top
}
# DATE
label {
monitor =
text = cmd[update:160000] curl -s 'wttr.in/Kauns,%20Austria?format=%l:+%t'# update every 60 seconds
font_size = 20
font_family = $font
position = -30, -200
halign = right
valign = top
}
label {
monitor =
text = cmd[update:160000] curl -s 'wttr.in/Kauns,%20Austria?format=%c+%C'# update every 60 seconds
font_size = 20
font_family = $font
position = -30, -240
halign = right
valign = top
}
image {
monitor =
shadow_passes = 2
path = ~/.config/hypr/spotify_cover.jpg
reload_time = 5
reload_cmd = wget -q $(playerctl --player=spotify metadata mpris:artUrl) -O ~/.config/hypr/spotify_cover.jpg && echo "~/.config/hypr/spotify_cover.jpg"
size = 150
rounding = 5
position = 20, -30
halign = left
valign = top
border_size = 0
}
label {
monitor =
text = cmd[update:1000] echo "󰎇 $(playerctl --player=spotify metadata title)"# update every 60 seconds
font_size = 25
font_family = $font
position = 200, -30
halign = left
valign = top
}
label {
monitor =
text = cmd[update:1000] playerctl --player=spotify metadata album # update every 60 seconds
font_size = 20
font_family = $font
position = 200, -80
halign = left
valign = top
}
label {
monitor =
text = cmd[update:1000] playerctl --player=spotify metadata artist # update every 60 seconds
font_size = 20
font_family = $font
position = 200, -130
halign = left
valign = top
}
label {
monitor =
text = cmd[update:60000] uptime -p && hostname -i | awk '{print "IP: "$1}'# update every 60 seconds
font_size = 10
font_family = $font
position = 0, 10
halign = center
valign = bottom
}