How about rising a proposal at the dude who wrote headphone daemon? It watches headphone stuff, maybe it could up volume when plugged, as it stops stuff when unplugged.