Add fingerprint functionality via fprintd DBus service - #49
Conversation
|
GitHub denied pushing into your branch, but allowed me to add commit via web interface. Weird. |
|
Would love to see this integrated into swaylock-effects and finally finding a home - otherwise you could have a look at this approach which would be sufficient to reach the same goal with some manual workarounds. |
Co-authored-by: Alexander Lutsai <s.lyra@ya.ru>
|
Okay this should now build without fingerprint support. @jirutka is there anything else you want before merging? |
|
@jirutka is this pr is in consideration? |
Yes, it is, I just need some time to test it. |
|
@jirutka I have been using this pr and in my observation if it is build with fingerprint support then fingerprint works fine but manual password input fails to verify.
auth sufficient pam_fprintd.so
auth include loginafter adding the |
|
Why is this PR needed? It already works for me on NixOS (nixpkgs tracks this fork). I can press Enter and then grace the fingerprint sensor to log in, or I can just type the password and press Enter as normal. Edit:
|
This pr enables to scan fingerprint without the press of the |
|
I don't know anything but would it be possible to use Reason: Alternative: postPatch = let
dbusInterfacesDir = (pkgs.symlinkJoin {
name = "${self.pname}-${self.version}_dbus-interfaces-dir";
paths = self.buildInputs;
pathsToLink = [ "share/dbus-1/interfaces" ];
}) + "/share/dbus-1/interfaces";
in super.postPatch or "" + ''
sed -i 's@/usr/share/dbus-1/interfaces@${dbusInterfacesDir}@g' \
fingerprint/meson.build
''; |
| '(--hide-keyboard-layout -K)'{--hide-keyboard-layout,-K}'[Hide the current xkb layout while typing]' \ | ||
| '(--ignore-empty-password -e)'{--ignore-empty-password,-e}'[When an empty password is provided, do not validate it]' \ | ||
| '(--image -i)'{--image,-i}'[Display the given image, optionally only on the given output]:filename:_files' \ | ||
| '(--fingerprint -p)'{--fingerprint,-p}'[Enable fingerprint scanning. Fprint is required]' \ |
| complete -c swaylock -l hide-keyboard-layout -s K --description "Hide the current xkb layout while typing." | ||
| complete -c swaylock -l ignore-empty-password -s e --description "When an empty password is provided, do not validate it." | ||
| complete -c swaylock -l image -s i --description "Display the given image, optionally only on the given output." | ||
| complete -c swaylock -l fingerprint p --description "Enable fingerprint scanning. Fprint is required." |
| "Show the current Caps Lock state also on the indicator.\n" | ||
| #if HAVE_FINGERPRINT | ||
| " -p, --fingerprint " | ||
| "Enable fingerprint scanning. Fprint is required.\n" |
Requires PR #49. <jirutka/swaylock-effects#49>
|
It doesn't work when resuming from hibernation, works for suspend. Can anyone reproduce? |
Requires PR #49. <jirutka/swaylock-effects#49>
Cherry-picked from jirutka#49 Co-authored-by: Quantum <quantum2048@gmail.com>
|
To make it official, I forked this repo and applied this excellent feature: hboetes@6b47471 Together with further improvement, bug fixes, security fixes and other excellent PRs never committed. |
For fun, I've ported swaywm#283 to run on this version of
swaylock-effects. To enable fingerprint, build with-Dfingerprint=enabled.