Create a script that triggers your computer to do a specific action when a specific device is plugged in.
Source of shared Link