From 89b2933ee61d4e9c8edd65f5070735abfa67807a Mon Sep 17 00:00:00 2001 From: lenemter Date: Fri, 3 Oct 2025 20:20:07 +0300 Subject: [PATCH 1/3] Add support for notification spec 1.3 --- src/DBus.vala | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/DBus.vala b/src/DBus.vala index 3e23b0f..8be8404 100644 --- a/src/DBus.vala +++ b/src/DBus.vala @@ -88,7 +88,7 @@ public class Notifications.Server : Object { name = "io.elementary.notifications"; vendor = "elementaryOS"; version = "0.1"; - spec_version = "1.2"; + spec_version = "1.3"; } public new uint32 notify ( @@ -237,6 +237,13 @@ public class Notifications.Server : Object { unowned string sound; switch (category) { + case "call": + case "call.ended": + case "call.incoming": + case "call.unanswered": + // We probably should use "phone-incoming-call" but it sounds awful in freedesktop theme + sound = "dialog-information"; + break; case "device.added": sound = "device-added"; break; From 163681ce413389113364e2e33780425f101216bf Mon Sep 17 00:00:00 2001 From: lenemter Date: Fri, 3 Oct 2025 20:38:20 +0300 Subject: [PATCH 2/3] Use phone-* sounds --- src/DBus.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/DBus.vala b/src/DBus.vala index 8be8404..d7d765c 100644 --- a/src/DBus.vala +++ b/src/DBus.vala @@ -239,10 +239,13 @@ public class Notifications.Server : Object { switch (category) { case "call": case "call.ended": + sound = "dialog-information"; + break; case "call.incoming": + sound = "phone-incoming-call"; + break; case "call.unanswered": - // We probably should use "phone-incoming-call" but it sounds awful in freedesktop theme - sound = "dialog-information"; + sound = "phone-outgoing-busy"; break; case "device.added": sound = "device-added"; From 887577517218f4ab3c37c90833096a209807cf75 Mon Sep 17 00:00:00 2001 From: lenemter Date: Fri, 3 Oct 2025 20:58:36 +0300 Subject: [PATCH 3/3] Use phone-hangup sound --- src/DBus.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DBus.vala b/src/DBus.vala index d7d765c..e0d0a54 100644 --- a/src/DBus.vala +++ b/src/DBus.vala @@ -238,9 +238,11 @@ public class Notifications.Server : Object { switch (category) { case "call": - case "call.ended": sound = "dialog-information"; break; + case "call.ended": + sound = "phone-hangup"; + break; case "call.incoming": sound = "phone-incoming-call"; break;