Is it possible to route different applications to different audio outputs with Pulse Audio? I'd like my music to be played on my Stereo, but I'd like sound alerts to be played on my notebook speakers. Is that possible with Pulseaudio?
Try Ear Candy. It is not only possible to switch between outputs when they're attached, but also to route several programs to other outputs as you're looking for (and lots of other small improvements).