Jump to content

Do Not Disturb, Limited


Recommended Posts

I've incorporated @paulw snippet to hopefully support Big Sur and previous releases. I can only test on Catalina currently, so if anyone on Big Sur would try out v0.1.3 I would really appreciate it! Let me know how it works out.

 

@paulw While it might work to make mods to that plist file to do the enable/disable, I assume it'd be roughly equivalent to modifying the similar plist file in Catalina and before. That means we'd need to kill the Notification Center process to force a re-read of the preference. However, the indicator would be out of sync, which is why I opted for the keyboard shortcut method, even though that requires more manual setup.

Link to post

You have a typo in your code: big_sur_dnd_prefs (plural) is defined, but then the singular big_sur_dnd_pref is used.


Edit: But it works when I manually edit the typo!

Edited by paulw
Link to post

@paulw Nice catch!... Always good to see collaborative work.

 

I tested too (not thoroughly) and had mixed results. Tried twice in a row and second time didn't work (turned on dnd but didn't turn off after desired minutes). On second try the 'disable' part never ran. Maybe I didn't give it enough time because of the mentioned delay, if I try to replicate while typing slowly = it works.

Link to post
  • 4 weeks later...
  • 1 month later...

Excited to try this out... and wondering if I might submit a feature request to match the slash commands that Slack offers (which allows you to specify a time to pause and resume notifications, among a few other niceties)?

 

image.thumb.png.2d4cd251cf0e7afee9b8253dcffa4659.png 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...