hyprwm / hyprlock

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

Way to cancel parallel fingerprint unlock #538

Open BBaoVanC opened 1 week ago

BBaoVanC commented 1 week ago

Description

The new parallel fingerprint unlock support is awesome: much better than the pam hacks. But, I used to be able to use my power button (part of the fingerprint sensor) to put my laptop back to sleep and cancel the unlock after waking it up. Now, because it's trying to read fingerprint simultaneously, the power button gets ignored. I don't really have any way to cancel the unlock now apart from closing the laptop lid.

PaideiaDilemma commented 5 days ago

So you would like to have a key-bind to cancel fingerprint authentication? Or what exactly do you have in mind?

BBaoVanC commented 5 days ago

Preferably a keybind to cancel the fingerprint author temporarily. There should be a way to trigger it again, and it would be nice if it automatically triggered fprint auth after resuming from sleep even if it was cancelled before.

I could also see having an option to not prompt for fingerprint automatically, but instead require a key bind to trigger it first

Another way is to have a keybind to go back to sleep. Then it should still prompt after waking back up.

PaideiaDilemma commented 5 days ago

Another way is to have a keybind to go back to sleep. Then it should still prompt after waking back up.

Just use hyprland bindl. I don't think we need to implement that in hyprlock.

BBaoVanC commented 5 days ago

That is a good point, can I make the bind only work when locked (so I could bind it to something simple like esc)?

BBaoVanC commented 4 days ago

Another way is to have a keybind to go back to sleep. Then it should still prompt after waking back up.

Just use hyprland bindl. I don't think we need to implement that in hyprlock.

Actually, I just thought of another use. My fingerprint sensor gets hot after hyprlock has been sitting idle waiting to read the fingerprint, and I have my idle set up so it locks the screen 30 seconds before sleeping. Maybe if there was an option for hyprlock to not read fingerprint until you give it some keybind to begin that would fix it.