mxcl/homebrew — pull request #8425 by HerbCSO (2011-11-02 20:25:35+00:00)
Title: Adding xdotool formula

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.
Additionally, you can search for windows and move, resize, hide, and modify window properties like the title. If your window manager supports it, you can use xdotool to switch desktops, move windows between desktops, and change the number of desktops.