I know it’s been a while, but any updates on:

“In KDE Plasma 5.19 […] it should be possible to just let the Plasma desktop run the script on an activity change, so the SystemD path can be avoided.”