From bd8b12b23bb8ae14bdcfdf66befdf3fa5bc9ce6e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 6 Feb 2026 11:24:12 +0100 Subject: [PATCH] Ensure hyprlock only looks for a fingerprint auth when that's configured This should eradicate the first failed auth attempt after sleep/hibernation --- bin/omarchy-setup-fingerprint | 2 ++ config/hypr/hyprlock.conf | 2 +- migrations/1770372978.sh | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 migrations/1770372978.sh diff --git a/bin/omarchy-setup-fingerprint b/bin/omarchy-setup-fingerprint index 105234ff..22a164ef 100755 --- a/bin/omarchy-setup-fingerprint +++ b/bin/omarchy-setup-fingerprint @@ -58,11 +58,13 @@ EOF add_hyprlock_fingerprint_icon() { print_info "Adding fingerprint icon to hyprlock placeholder text..." sed -i 's/placeholder_text = .*/placeholder_text = Enter Password 󰈷 <\/span>/' ~/.config/hypr/hyprlock.conf + sed -i 's/fingerprint:enabled = .*/fingerprint:enabled = true/' ~/.config/hypr/hyprlock.conf } remove_hyprlock_fingerprint_icon() { print_info "Removing fingerprint icon from hyprlock placeholder text..." sed -i 's/placeholder_text = .*/placeholder_text = Enter Password/' ~/.config/hypr/hyprlock.conf + sed -i 's/fingerprint:enabled = .*/fingerprint:enabled = false/' ~/.config/hypr/hyprlock.conf } remove_pam_config() { diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index f7a939c0..9550b656 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -39,5 +39,5 @@ input-field { } auth { - fingerprint:enabled = true + fingerprint:enabled = false } diff --git a/migrations/1770372978.sh b/migrations/1770372978.sh new file mode 100644 index 00000000..aa0ae73b --- /dev/null +++ b/migrations/1770372978.sh @@ -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