What I should have been Googling is "AutoIt for Linux", where I would have discovered the scripting too called "AutoKey", which includes functions for windows manipulation. I'm going to leave this post up for posterity.
Actually, if you're feeling keen on using the command line, you can actually use wmctrl
.