This question was asked a while back and I have also asked about it on askUbuntu. I am surprised there is not an easy way to do this.

As I point out in the askUbuntu forum, wmctrl is NOT a good...