@w4tsn hi, inspired by the Fedora Magazine article and since I found out that the udev rules for locking the screen didn't work very wel with pam_yubico I wrote a gnome-shell extension that locks the screen on smart card removal: https://extensions.gnome.org/extension/5901/smartcard-lock/ I would post a comment on the article, but they're closed. I hope it's useful for you too.