Skip to content

Conversation

@marbetschar
Copy link
Member

@marbetschar marbetschar commented Aug 25, 2021

Respects a user defined setting for a specific app to bypass do not disturb mode. Works together with the companion PR in the switchboard-plug-notifications repo: elementary/settings-notifications#84

@danirabbit
Copy link
Member

I'm gonna bump this to OS 7 because I think we need more careful consideration around the design here than we have this month

@jeremypw
Copy link

This does work after restarting the notifications server.

<schema id="io.elementary.notifications.applications">
<key type="b" name="bypass-do-not-disturb">
<default>false</default>
<summary>Notify despite Do Not Disturb is enabled</summary>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Notify despite Do Not Disturb setting being enabled"

"/io/elementary/notifications/applications/%s/".printf (notification.app_id)
);

if (!settings.get_boolean ("do-not-disturb") || app_settings.get_boolean ("bypass-do-not-disturb") || notification.priority == GLib.NotificationPriority.URGENT) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long line

Copy link

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of minor nitpicks re code but works as expected in conjunction with the other mentioned PR.

@jeremypw
Copy link

jeremypw commented Mar 6, 2022

@marbetschar Are you able to address the review comments - this PR is nearly mergeable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

4 participants