Use wmctrl to get workarea resolution to allow for the panel.