Add udev rule to lock screen when yubikey is unplugged

This commit is contained in:
Marko Korhonen 2022-08-16 20:43:44 +03:00
parent 7c1b22e57f
commit 6d30b1876f
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1 @@
ACTION=="remove", ENV{ID_BUS}=="usb", ENV{ID_MODEL_ID}=="0407", ENV{ID_VENDOR_ID}=="1050", RUN+="/usr/bin/loginctl lock-sessions"