Audio playback respecting system notification/DoNotDisturb setting
I know gtk4 has the GtkMediaStream, but I did not notice whether it can respect user's settings about app notifications or the Do Not Disturb setting.
My use case is to have a way to play a sound, like a new mail sound or a reminder sound, which will not disturb users when on the online conference/meeting or when they explicitly disable audio notifications for the application. I understood the GtkMediaStream cannot handle system sounds (when the file is not known). I'd need custom files as well though.
Is there anything for this, please?
Not necessarily in gtk, it was only an idea since the GtkMediaStream addition.
I tried to use an empty notification to play only the sound, but it shows an empty notification "window/bubble", which is not good. Otherwise it would work perfectly, one could just pass who it is (app ID), what to play (a system sound or a file; the best also a simple "beep"), and that being all. The desktop environment could then play or not play it according to the user preference.