For a while I had my laptop set up with a udev rule that would automatically lock it as soon as my USB Yubikey was unplugged. The Yubikey was on my keychain on a lanyard attached to my clothing.
I mostly used that at CCC events where I was paranoid about forgetting to lock my laptop when I left it unattended, but it would also defend against that scenario pretty well.