x11-misc/xdotool
Simulate keyboard input and mouse activity, move and resize windows
USE Flags
examples
Global: Install examples, usually source code
doc
Global: Adds extra documentation (API, Javadoc, etc)