wmctrl - a programm exactly for this

or:

Type x<tab> and see if there's a useful tool in the list