xdotool
Manual page and help for the xdotool linux command. Xdotool can be used to program (or manually) simulate keyboard input and mouse operations: move and resize windows, and more. It does all this with the X11 XTEST extension and other Xlib features. There is some support for Extended Window Manager Tips (also known as EWMH or NetWM). See "EXTENDED WINDOW MANAGER HINTS" for more information.