How to configure automatic switching between embedded speakers and headphones?

Greetings!

Is it possible to configure in OpenSuse 12.2 automatic switching between different output sound devices (e.g. headphones and embedded laptop speakers)? Now to switch between them I need to change output device in pavucontrol.

Best regards,
Aleksey.