尚未检测到更新。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.