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

App setting to bypass do not disturb #148

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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/switchboard-plug-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.

@@ -8,6 +8,10 @@
<child name="applications" schema="io.elementary.notifications.applications" />
</schema>
<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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants