wmctrl

http://sweb.cz/tripie/utils/wmctrl/

The wmctrl program is a command line tool to interact with an EWMH/NetWM compatible X Window Manager.