Nice to see an alternative, there is some old issues with xdotool or wmctrl and after some tests I will probably replace them completely with bonk.
I updated my script for i3wm to toggle windows between scratchpad/active/start/stop:
https://gist.github.com/tkapias/0443d4930c1d7b520f4496e1ff39...