Add daemon for the headset switch (or can funkeymonkey do that?)
At the moment, sound is always output to channel 1,2 (Headset) and 3,4 (speakers) at the same time (setup like that in PulseAudio).
To enable / disable the headset / speaker output, you need to use ALSA mixer.
Ideally, this should be mapped to the headset switch, so that plugging in a headset disables the speakers in ALSA and enables headset output (though this isn't even necessary) and enables the speakers again when the headset is removed again.