Skip to content

Commit

Permalink
Play different sound when notification is urgent (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
meisenzahl committed Jun 15, 2021
1 parent 121f3b2 commit 18601a8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/DBus.vala
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,15 @@ public class Notifications.Server : Object {
}
}
if (app_settings.get_boolean ("sounds")) {
send_sound (hints);
switch (notification.priority) {
case GLib.NotificationPriority.HIGH:
case GLib.NotificationPriority.URGENT:
send_sound (hints, "dialog-warning");
break;
default:
send_sound (hints);
break;
}
}
}
}
Expand Down

0 comments on commit 18601a8

Please sign in to comment.