Xdotool replacement on wayland

Now, I know there’s a different way to ( more or less) do it. But to say that you can simply switch a script…
Anyway, I launched that script from a custom cornerbinding and it was pretty cool. I hope to find a reasonable solution in the future.

Ps: the other solution was to use the Only One Active widget and make a desktop app/script, a switch in the kwinrc.