Ensure hyprlock only looks for a fingerprint auth when that's configured

This should eradicate the first failed auth attempt after
sleep/hibernation
This commit is contained in:
David Heinemeier Hansson
2026-02-06 11:24:12 +01:00
parent c268fb6c9b
commit bd8b12b23b
3 changed files with 8 additions and 1 deletions

5
migrations/1770372978.sh Normal file
View File

@@ -0,0 +1,5 @@
# Disable fingerprint in hyprlock if fingerprint auth is not configured
if omarchy-cmd-missing fprintd-list || ! fprintd-list "$USER" 2>/dev/null | grep -q "finger"; then
sed -i 's/fingerprint:enabled = .*/fingerprint:enabled = false/' ~/.config/hypr/hyprlock.conf
fi