Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

http://www.linuxjournal.com/magazine/hack-and-automate-your-desktop-wmctrl 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. –  jrg 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 pastie.org/3923197 , 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.