Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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've made a script to rotate my tablet, but after rotation the desktop icons are out of range (first image) and I have to manual click on 'Organize desktop by name' (second image). I want that my script automatic organizes the desktop like second image, any idea? Thanks.

Icons out of range

Organized icons

share|improve this question

let us see your script to know if there is something to be done with... It may help

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – James May 14 '12 at 11:58
I can use wmctrl to maximize and minimize windows, but don't know how to organize a desktop with it. Could you help me? My script is on , but anything with xrandr to rotate the desktop and xinput to rotate the touchscreen will be useful. – David López May 17 '12 at 0:22

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.