nls1729 / acme-code

Gnome Shell Extensions etc...
https://nls1729.github.io
GNU General Public License v2.0
66 stars 25 forks source link

donotdisturb-button: Disable notification sounds when busy #30

Closed badshah400 closed 6 years ago

badshah400 commented 6 years ago

It would be great if the donotdisturb-button disabled notification sounds when in the busy mode. At present, toggling on the busy mode does hide the notification banner from appearing, but I can still hear the "Alert" sound from the GNOME sound theme (which I do want to hear when I am not in the busy mode).

Thanks for the exceedingly useful extension.

nls1729 commented 6 years ago

@badshah400 What linux distribution are you using? I have tested using Gnome Shell 3.26 on Fedora and the sounds are blocked when the extension is in the busy state.

badshah400 commented 6 years ago

I am using openSUSE Tumbleweed, Gnome shell 3.26.2.

nls1729 commented 6 years ago

@badshah400 Please try the following and let me know the results. Set the extension to Busy. At a terminal prompt: $ notify-send --hint=string:sound-name:message XXX YYY Set the extension to Available. $ notify-send --hint=string:sound-name:message XXX YYY

badshah400 commented 6 years ago

@nls1729 Sorry, it does mute the usual notification sound. The sound that is not muted is the empathy chat notification (and possibly non-standard notification sounds from other assorted apps), but that probably has nothing to do with your extension. I regret that I misunderstood this and apologise if I wasted your time.