4c497ed fixed the invisible empty field by disabling fade_on_empty
entirely, but that made the field permanently visible even at rest,
which is no longer wanted. The underlying visibility problem was the
colours and the empty $LAYOUT placeholder, and those fixes stay: with
the brighter inner_color and the static 'Enter password' placeholder the
field is clearly readable while typing, so fade_on_empty can safely come
back to hide the field until it is used.
56 lines
1.6 KiB
Text
56 lines
1.6 KiB
Text
auth {
|
|
# Parallel fingerprint auth — used on Chester (fingerprint reader + fprintd).
|
|
# On machines without fprintd/reader (e.g. Rutherford) hyprlock simply never
|
|
# claims a device, so this stays inactive and only password auth applies.
|
|
fingerprint {
|
|
enabled = true
|
|
ready_message = Scan fingerprint to unlock
|
|
present_message = Scanning...
|
|
}
|
|
}
|
|
|
|
animations {
|
|
animation = fadeOut, 0
|
|
}
|
|
|
|
background {
|
|
path = ~/.config/hypr/wallpapers/Purple.jpg
|
|
blur_passes = 2
|
|
color = rgba(0, 0, 0, 0.2) # slightly darken overlay
|
|
}
|
|
|
|
label {
|
|
text = $TIME
|
|
color = rgba(255, 255, 255, 0.5)
|
|
font_size = 200
|
|
font_family = Curved Square
|
|
position = 0, 0
|
|
halign = center
|
|
valign = center
|
|
}
|
|
|
|
input-field {
|
|
size = 8%, 3%
|
|
outline_thickness = 0
|
|
inner_color = rgba(255, 182, 193, 0.6) # translucent but clearly visible
|
|
outer_color = rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 1.0) 90deg
|
|
check_color = rgba(255, 50, 80, 0.9) rgba(255, 0, 100, 0.9) 30deg
|
|
fail_color = rgba(255, 50, 80, 0.9) rgba(255, 0, 100, 0.9) 30deg
|
|
|
|
font_color = rgba(255, 255, 255, 0.9)
|
|
# Only show the field once typing starts (old behaviour). The colours above
|
|
# were brightened and the placeholder made static so the field is clearly
|
|
# visible while typing — see the $LAYOUT/fcitx5 note below.
|
|
fade_on_empty = true
|
|
rounding = 20
|
|
|
|
position = 0, 60
|
|
halign = center
|
|
valign = bottom
|
|
|
|
font_family = Roboto
|
|
# $LAYOUT can resolve to an empty string when fcitx5 owns the keyboard,
|
|
# which left a blank placeholder; show useful static text instead.
|
|
placeholder_text = Enter password
|
|
}
|
|
|