WMIface is a command line tool that allows user scripting of the running window manager (any EWMH-compatible window manager, including KDE's KWin, GNOME's Metacity, Compiz, and others). The only dependencies of this tool are the Qt4 QtCore library and the X11 libraries.