- install chezmoi
chezmoi init marijn070
On omarchy i setup the fingerprint to be disabled when the lid was closed.
create the script /usr/local/bin/pam-lid-check
#!/usr/bin/env bash
# detect lid state
LID_STATE=$(cat /proc/acpi/button/lid/*/state 2>/dev/null | awk '{print $2}')
# if closed → fail → skip fingerprint
if [ "$LID_STATE" = "closed" ]; then
exit 0
fi
# lid open → allow fingerprint
exit 1In the /etc/pam.d/ folder, create a file named fprint-conditional with the following content:
auth [success=1 default=ignore] pam_exec.so quiet /usr/local/bin/pam-lid-check
auth sufficient pam_fprintd.so
wherever the fprint is referenced in the pam folder (rg fprint /etc/pam.d), replace the line
auth sufficient pam_fprintd.so
with
auth include fprint-conditional