Hello! I was looking for a solution to the same issue and I found this page. First of all, thank you so much for this, I have no knowledge of coding so this is really helpful. Anyway I followed the instructions, with the sole differences being the name of one activity (I put Home where you wrote Personal), the name of the second browser (brave-browser.desktop) and the location of the script in the service file. The service starts without errors, but it has no effect.

In fact running “systemctl –user status activity-monitor.service” returns “install activity-monitor[17299]: /home/tw/.bin/activity-monitor: line 15: : command not found”.

Line 15 is “dbus-monitor –profile “type=signal,path=$path,interface=$interface,member=$signal” | \ “. Is there something I should modify there to make it work?

I am running opensuse with plasma 5.22. Sorry to bother you and thanks again!