13 lines
563 B
Bash
13 lines
563 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Only invite when there's a reader to use and it isn't set up yet (the lock
|
|
# PAM file is the last thing the setup writes on success).
|
|
if omarchy-hw-fingerprint && [[ ! -f /etc/pam.d/omarchy-lock-fingerprint ]] &&
|
|
omarchy-done ensure fingerprint-setup-invitation; then
|
|
omarchy-notification-send -u critical -g "$(omarchy-text "Setup Fingerprint Reader")" \
|
|
"$(omarchy-text "Enable sudo and unlocking with your fingerprint.")" \
|
|
--exec omarchy-launch-floating-terminal-with-presentation omarchy-setup-security-fingerprint
|
|
fi
|