Monitor detection and xcmenu