尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Face unlock for Omarchy: IR face recognition on the lock screen, sudo and polkit, with TPM-sealed face data and Face ID-style password rules.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Face unlock for Omarchy. Open the lid, look at the screen, and you're in: a lock screen that recognizes you with the IR camera, plus face for sudo and polkit. The password always works, and it stays the first unlock after boot. Project page: https://duduphudu.app/omarchy-penguid/
It replaces the built-in lock screen (clonedFrom: omarchy.lock) and keeps its password and fingerprint lanes unchanged. Next to them it runs a third PAM service, omarchy-lock-face:檢視完整 README ↗Face unlock for Omarchy. Open the lid, look at the screen, and you're in: a lock screen that recognizes you with the IR camera, plus face for sudo and polkit. The password always works, and it stays the first unlock after boot. Project page: https://duduphudu.app/omarchy-penguid/
It replaces the built-in lock screen (clonedFrom: omarchy.lock) and keeps its password and fingerprint lanes unchanged. Next to them it runs a third PAM service, omarchy-lock-face:
As with Face ID, face unlock pauses when:
While face is paused, the lock screen's field says "Password required", the panel asks for your password, and sudo and polkit skip face and pass on a short note saying why. Typing the password resets both rules. If the last password use can't be established (for example, the session's login time is unreadable and no state file exists yet), face stays off until the password is typed. The state lives in ~/.local/state/penguid/state.json; it only protects against someone at the locked screen, not against software already running as you.
tools/check-upstream.sh compares the Omarchy lock screen and polkit dialog PenguID is based on (upstream/omarchy-4.0.3/) with the ones Omarchy ships now. Run it after Omarchy updates, and merge any changes it reports.
tools/privileged-pam.sh adds face to sudo and polkit prompts, or takes it out again:
tools/privileged-pam.sh status
sudo tools/privileged-pam.sh enable
sudo tools/privileged-pam.sh disable
At a prompt you see "Press Enter for face, or type your password". Press Enter and look at the screen, or type your password as usual; if face doesn't match, the password prompt follows. While face runs, the face HUD (below) shows the mark above every window. With the lid closed or face paused, you get the plain password prompt. After an accepted password, one more line notes the time, which turns face back on for 48 hours. The login screens are left alone on purpose.
enable does four things:
pam/pam_penguid.c into /usr/lib/security/pam_penguid.so, the small module behind the Enter prompt, which only checks whether the answer is empty, and which tells the face HUD when face starts, matches or is refused;/usr/local/lib/penguid/pam-gate, owned by root because PAM runs it as root; it switches to your account before it reads or writes your state;/etc/systemd/system/[email protected]/penguid.conf, because polkit runs its password step in a sandbox that hides /home; the drop-in shows that sandbox only ~/.local/state/penguid and the HUD's socket folder /run/user/UID/penguid;irlume auth consent hands-free), since the Enter prompt now asks first.disable turns irlume's confirmation back on first, then removes the rest.
Three limits to know. Faces refused at sudo or polkit don't count toward the 5, because irlume reports every miss to PAM the same way. Anything that answers the prompt can press Enter, including software already running as you, so a face here proves you're at the screen, not that you meant to approve. And irlume's consent switch is machine-wide: a privileged PAM stack that runs irlume without PenguID's Enter prompt would scan straight away.
Face unlock shows itself the way Face ID does on iOS: a small card with the PenguID mark, above every window and fullscreen app. It appears whenever face runs outside the lock screen, at a sudo or polkit prompt or with the panel's Test my face. The corners breathe in amber while irlume looks, a match winks in green, and a refusal shows flat red eyes with a shake, before the card fades. It never takes a click or a key, and it stays away while the lock screen, which has its own mark, is up.
The HUD listens on /run/user/UID/penguid/hud.sock, in a folder only you can open. pam_penguid.so writes one line per step there (looking sudo, granted polkit-1, refused sudo), checking the path and connecting with your file permissions, and without ever blocking the login step. omarchy-shell penguid hud looking (or granted, refused, hide) shows a state by hand.
polkit/ holds a second plugin, reidenxerx.penguid-polkit: Omarchy's polkit dialog (clonedFrom: omarchy.polkit) that words each step: "Press Enter for face", "Looking for you...", and "Type your password" when face didn't match. The face HUD draws the mark above it. PAM's notes, such as irlume's "look at the camera" or why face is paused, show under the card.
cp -r polkit ~/.config/omarchy/plugins/reidenxerx.penguid-polkit
cp LICENSE NOTICE ~/.config/omarchy/plugins/reidenxerx.penguid-polkit/
omarchy-shell shell rescanPlugins
omarchy plugin enable reidenxerx.penguid-polkit # replaces Omarchy's polkit dialog
Only one polkit agent can register per session. If another one starts first, such as hyprpolkitagent, the shell logs "An authentication agent already exists" and the other dialog keeps showing: stop that agent and restart the shell.
irlume enroll). PenguID was developed with irlume's IR-only mode (sudo irlume auth sensor ir-only --yes), where an attempt takes about 3.6 s./etc/pam.d/omarchy-lock-face. The face indicator and the lane only appear while this file exists:#%PAM-1.0
auth sufficient pam_irlume.so
auth required pam_deny.so
account include system-local-login
omarchy-shell shell rescanPlugins
omarchy plugin enable reidenxerx.penguid # replaces the built-in lock screen
omarchy plugin disable reidenxerx.penguid # brings the built-in lock screen back
Restart the shell (omarchy restart shell) after changing QML files; hot reload does not apply them.
If the lock screen ever fails to show or won't unlock:
omarchy plugin disable reidenxerx.penguid --yes.omarchy-shell lock previewFace looking shows the lock preview with the mark in one mood (ready, looking, granted, refused or paused); omarchy-shell lock hidePreview closes it. omarchy-shell lock status (or qs ipc call lock status) reports impl, face, faceAuthenticating and faceAttempts. The lock log lines (omarchy lock … face-attempt 1, face-granted, face-refused, face-stop: …) go to the shell's log.
node tests/model-test.js
node tests/polkit-test.js
python3 tests/pam-gate-test.py
See NOTICE. The lock screen and the polkit dialog are Omarchy's (MIT). The face lane comes from Omarchy PR #6863 by @mateuszkowalczyk. Face authentication is done by irlume. This plugin is GPL-3.0-or-later.