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'd like to get some of the functional of xmonad in gnome. Is it possible to write a shell script that will resize and position the windows that are open on the Gnome desktop?

share|improve this question
Devil's pie comes to mind. See here:… – con-f-use Aug 6 '11 at 17:46
up vote 0 down vote accepted

You can do scripts using xdotool.

"What is xdotool?
This tool lets you simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11's XTEST extension and other Xlib functions."

share|improve this answer

Another option is wmctrl, that works with any EWMH/NetWM compatible window manager

share|improve this answer

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.