My computer has a headphone extension, when plugged in it swaps the sound to the headphone jack and silences the speakers.
Basically, is it possible to have the speakers be silenced and have the computer swap to the headphone jack only when the extension actually has plugged in at the end...