-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fingerprint functionality via fprintd DBus service #49
base: master
Are you sure you want to change the base?
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 login after 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
''; |
@@ -18,6 +18,7 @@ _arguments -s \ | |||
'(--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]' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Fprint/fprintd/
@@ -14,6 +14,7 @@ complete -c swaylock -l help -s h --description "Show help mes | |||
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." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Fprint/fprintd
@@ -1106,6 +1113,10 @@ static int parse_options(int argc, char **argv, struct swaylock_state *state, | |||
"Disable the Caps Lock text.\n" | |||
" -l, --indicator-caps-lock " | |||
"Show the current Caps Lock state also on the indicator.\n" | |||
#if HAVE_FINGERPRINT | |||
" -p, --fingerprint " | |||
"Enable fingerprint scanning. Fprint is required.\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Fprint/fprintd
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>
For fun, I've ported swaywm#283 to run on this version of
swaylock-effects
. To enable fingerprint, build with-Dfingerprint=enabled
.