I think your best bet is ivman
. It can run commands or scripts on new hardware detection or other system events (via hal). It would be perfect for this kind of thing. I use it myself to reenable my mouse settings, because I constantly flip it back and forth between two computers via a usb a/b switch, and they keep getting lost without it.
It's also possible to launch scripts directly via udev
when hardware is plugged in, but that's generally a root-level thing more for hardware configuration.