mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Add support for controlling the sound played with notifications
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user