Screenlock mit Fidokey (YubiKey)

#!/bin/sh logger "Key Removed - Locking Workstation" loginctl lock-sessions
KERNEL=="hidraw*", SUBSYSTEM=="usb", ENV{PRODUCT}=="96e/854/3500", TAG+="uaccess", GROUP="plugdev", MODE="0660" ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="96e/854/3500" RUN+="/etc/udev/scripts/lock.sh"