Steps: 1. Setup one activity called "work" 2. Setup another one called "focus" 3. On activity "work", open chat program (in my case RocketChat, which is Electron-based) 4. On activity "work", start thunderbird with some configured email client and leave notifications on 5. Switch to "focus" activity 6. Close the "work" activity because you want to focus and not get disturbed. 7. Wait until someone sends a message on RocketChat or email. Expected result: RocketChat and thunderbird should be closed, no notifications should appear from a closed activity. Actual result: I still get "RocketChat" notification in the task bar. When I click on it, it resumes the "work" activity. My expectation of a closed activity is that it should not have any more running processes and it should stay closed. Not sure if this is a misunderstanding of the use cases for activities or a bug. Now this could also be a bug with non-KDE apps, I haven't tried with those yet.
I forgot to mention that I have an IDE open on the "focus" activity, so it's not like I only want to inhibit notifications but really want to use the computer on other tasks while not being disturbed.
Or (maybe simpler?) make "Do not disturb" mode Activity-specific
Activities are currently being restructured a bit and we're undergoing a re-think of what exactly they should modify within the system; what you're asking is essentially to change a system setting (do not disturb / custom notifications) when changing activities, and I think that right now it's better to see how this re-work goes on before tackling such issues, especially since very few people are working on this feature and this risks becoming an open feature request for a long time.