Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play different sound when notification is urgent #85

Merged
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
cfef75a
Play different sound when notification is urgent
meisenzahl Aug 22, 2020
c169aa7
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Aug 26, 2020
c120a6d
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Sep 27, 2020
c6b38b6
Play different sound when priority is high or urgent
meisenzahl Sep 27, 2020
a007c70
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Oct 21, 2020
0229f10
Fix merge branch 'master'
meisenzahl Oct 21, 2020
4cf6b79
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Oct 28, 2020
cf81893
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Oct 28, 2020
2add027
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Oct 28, 2020
2a1f815
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Nov 4, 2020
703d9d1
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Nov 18, 2020
b3fe3f1
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Dec 14, 2020
ffd2a88
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Dec 28, 2020
b8de5ea
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Jan 30, 2021
d39f24f
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl Apr 11, 2021
5ca8728
Merge branch 'master' into play-different-sound-based-on-priority
meisenzahl May 26, 2021
79fdd41
Update DBus.vala
danirabbit Jun 15, 2021
bb56d00
Merge branch 'master' into play-different-sound-based-on-priority
danirabbit Jun 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-urgent");
break;
default:
send_sound (hints);
break;
}
}
}
}
Expand Down