swaywm / swaylock

Screen locker for Wayland
MIT License
853 stars 202 forks source link

Feature to allow unlocking via command #308

Closed discapes closed 1 year ago

discapes commented 1 year ago

Hi! It would be nice if it was possible to unlock swaylock programmatically. For example, I can unlock i3lock simply with pkill i3lock. If I try the same with swaylock, I get a red screen. This would enable users to add more unlock methods easily that pam might not support. Couple of use cases:

  1. Killing swaylock when resuming from hibernation, if the user already has full-disk encryption
  2. Killing swaylock when a fingerprint is detected.
emersion commented 1 year ago

You should be able to pkill -USR1 swaylock.

discapes commented 1 year ago

Yes, thank you. I should RTFM instead of assuming that it would show up on google