Add 'vertical SCREENNUMBER' option: xrdr returns 0 if the screen SCREENNUMBER is in portrait mode and 1 otherwise