I just finished my second open source project, called Yubilock. This Waybar module adds a service that will lock your screen when your Yubikey is disconnected. You can also toggle the service on/off depending on your threat model. Made to be used with a magnetic usb adapter, extension cable, and a key ring or carabiner that you can attach to your belt.
Thanks so much for taking the time create and share this. Autolocking after unplugging my Yubikey was on my to-do list… This is far nicer than anything I could have created!
@TheDragon this is the nicest message I’ve gotten for any of my code. Thanks so much! If you like it, please leave the project a star on github. And if there’s anything that could be better, please let me know.