Add support for controlling the sound played with notifications

This commit is contained in:
Kovid Goyal
2024-08-03 13:46:38 +05:30
parent 5e809d2767
commit bd8162fa42
11 changed files with 104 additions and 24 deletions

View File

@@ -34,6 +34,9 @@ def main(nc: NotificationCommand) -> bool:
if 'unwanted' in nc.title.lower():
return True
# force the notification to be silent
nc.sound_name = 'silent'
# filter out notifications from the application badapp
if nc.application_name == 'badapp':
return True