Toggling windows with script on arch linux

Hey, can anyone help me to toggle specific window with for example numpad7? On windows, I did it with autohotkey script, but on arch linux I simply don’t know how to do it the proper way. I use KDE Plasma, Wayland and KWin. Thanks!

#kdeplasma
wayland
kwin