I have an external monitor that I usually hook up my laptop too at home. Is there a way to automatically change the display configuration to disable my laptop screen and enable the remote display when its connected and vice versa?

Im running Ubuntu 12.10 with KDE on an ATI Radeon 7xxx series card.