hyprwm/hypridle

Resume on fprint activity

Opened this issue · 1 comments

I have a listener that dims my screen and starts hyprlock (with parallel fingerprint authentication) on timeout, would be nice if there were some way for it to resume after touching the fingerprint scanner, so that my screen undims.

Not sure if watching the fprintd service activity would be the best way to go about implementing this, but it may be worth generalising, allowing the user to configure any service which resumes the listener on activity.

According to the wiki

unlock_cmd: command to run when receiving a dbus unlock event (e.g. loginctl unlock-session)

So in theory you could do

unlock_cmd = "hyprctl dispatch dpms on";

or I see u were using a 'light' command

unlock_cmd = "light -I";

But in my testing it hasn't worked with hyprlock.

What I saw that Hyprlock generates the PropertiesChanged signal to indicate that the fingerprint was match and is no longer required but Hypridle is only matching Unlock signals.