A CLI tool that scans your usb ports for a device, then locks/unlocks xscreensaver.
Ernie Brodeur
gem "xscreen_usb_unlocker", "~> 0.91.0"