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 2a6196c2f7
commit 27fb6f64a3
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"