Place the folder inside /home/{your_user}/.local/share/kwin/scripts/
Paplay is used to play the sound.
- config.txt is used to set the sound files and volume to the actions
- main.qml line 36 you have the paplay line, change if wanted
- Inside kwin scripts just activate the script Win audio.
It's important to observe that i made this script for my personal use, so any problem just contact me, and i will try to help.