We ship wmctrl in KOReader to do weird shit like that, c.f.,
https://github.com/koreader/koreader...r.sh#L251-L261
With a bit of luck, one of the links in the comments points to @eureka's post about the window naming scheme... (at least I think it was from eureka, that was way too many years ago ^^).