Disable trackpad when mouse is attached

While looking through feature requests I found this and an earlier request for the same thing here: Disable Trackpad when mouse is conntected