hyprwm / hyprlock

Hyprland's GPU-accelerated screen locking utility
BSD 3-Clause "New" or "Revised" License
717 stars 53 forks source link

[REQ] Pin input widget #120

Open FearlessSpiff opened 6 months ago

FearlessSpiff commented 6 months ago

How hard would it be to add a pin input widget so that I could unlock my tablet with hyprlock? I would even change my password to a number based one if it would be easier to implement. Might even try to implement it myself with some helpful hints. Thanks

yavko commented 6 months ago

How hard would it be to add a pin input widget so that I could unlock my tablet with hyprlock? I would even change my password to a number based one if it would be easier to implement. Might even try to implement it myself with some helpful hints. Thanks

Just set up a pin using pam, and some pam module

FearlessSpiff commented 6 months ago

Thanks for the suggestion. I started looking a bit in the code yesterday evening. My question is more on the widget side. I guess I need to setup a number pad with buttons and then let the buttons act like a keyboard or something like that... Or maybe send the button input to the password field widget.

FearlessSpiff commented 6 months ago

I played around a bit but it seams to be crashing without an error in the log. So I am asking myself if there is kind of a dev-mode, where things get rendered but not really locked, because it is a real pain. Can't recover from the red screen. Only by killing Hyprland from anothe tty. Looked through the code but didn't find anything obvious.