Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using an xrandr script to set screen size and rotation. In this case one screen is in landscape mode and the other is rotated. How can I detect this rotation in the Awesome WM configuration?

The goal is to set the tag layout so that the windows are divided along the short axis of the screen. That is, a tag which uses awful.layout.suit.tile in landscape mode would use awful.layout.suit.tile.bottom in portrait mode. That is, rather than this:

enter image description here

I want this:

enter image description here

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.