Place the folder inside /home/{your_user}/.local/share/kwin/scripts/
Paplay is used to play the sound.
- Use the configuration button inside the kwin system pannel to configure the sounds and volume, needs to restart the system or the GUI to take effect
- 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.