Jump to content

Calm Notifications — Toggle Do Not Disturb Focus Mode


Recommended Posts

Posted (edited)
13 minutes ago, vitor said:

@vurte Yes, this one should work. But keep in mind it’s unsupported and doesn’t have every feature (because they’ve only been made available in Ventura).

Hi @vitor thanks for responding so quickly, long time user of Alfred but I've never deep dived into workflows and the forums much! The community is amazing when I look around.

 

I just want to confirm because when I double click it, I see the workflow is called CoffeeCoffee, and the description says it keeps the computer from sleeping. Does it turn on/off DND too?

Edited by vurte
Posted
2 minutes ago, vurte said:

long time user of Alfred but I've never deep dived into workflows and the forums much!

 

Making your own workflows, which is possible even you don’t know how to code, is quite powerful. For an interactive tutorial, see the Getting Started Guide.

 

3 minutes ago, vurte said:

The community is amazing when I look around.

 

Thumbs up!

 

4 minutes ago, vurte said:

I just want to confirm because when I double click it, I see the workflow is called CoffeeCoffee, and the description says it keeps the computer from sleeping. Does it turn on/off DND too?

 

Oh, sorry, I linked you to the wrong one. There you go.

  • 9 months later...
Posted

I have recently upgraded to macOS Sonoma 14.2.1 (23C71) and I have discovered that this workflow no longer works.

Whenever I trigger the workflow with “dnd“, I am prompted to install the shortcut, even though it was previously installed.

Please can you help?

 

Kind regards

 

Anthony

2024-02-19_Alfred-dnd-1.png

2024-02-19_Alfred-dnd-2.png

2024-02-19_Alfred-dnd-3.png

Posted

First uninstall the Shortcut you have. Then run the workflow and install the one it asks you to. Then try again.


If it still does not work, please provide the debugger output.

Posted
29 minutes ago, vitor said:

First uninstall the Shortcut you have. Then run the workflow and install the one it asks you to. Then try again.


If it still does not work, please provide the debugger output.

 

Yes, I tried this, and the result is the same. I'm prompted to install the shortcut every time.

However, I have discovered something else…

I just tried the same workflow on my MacBook Air M2, running exactly the same version of macOS Sonoma and exactly the same version of Alfred as my main Computer (Mac Studio M1) and it works fine. Both Macs use the same Alfred preferences stored in a Dropbox folder, so it looks like the Mac Studio has been blocking this workflow since the OS upgrade.

Any ideas of what that could be?

Posted
40 minutes ago, Anthony Browne said:

Any ideas of what that could be?

 

That’s why I need the debugger output. To see what could be happening.

Posted
31 minutes ago, vitor said:

 

That’s why I need the debugger output. To see what could be happening.

Sorry, I forgot to include that.

[19:11:36.538] Calm Notifications[Script Filter] Queuing argument ''
[19:11:36.758] Calm Notifications[Script Filter] Script with argv '' finished
[19:11:36.764] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:11:37.270] Calm Notifications[Script Filter] Queuing argument ''
[19:11:37.451] Calm Notifications[Script Filter] Script with argv '' finished
[19:11:37.457] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:11:37.957] Calm Notifications[Script Filter] Queuing argument ''
[19:11:38.156] Calm Notifications[Script Filter] Script with argv '' finished
[19:11:38.163] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:11:38.662] Calm Notifications[Script Filter] Queuing argument ''
[19:11:38.855] Calm Notifications[Script Filter] Script with argv '' finished
[19:11:38.863] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:11:39.130] Calm Notifications[Script Filter] Processing complete
[19:11:39.137] Calm Notifications[Script Filter] Passing output 'install' to Conditional
[19:11:39.139] Calm Notifications[Conditional] Processing complete
[19:11:39.140] Calm Notifications[Conditional] Passing output 'install' to Open File
[19:11:47.932] Calm Notifications[Script Filter] Queuing argument ''
[19:11:48.162] Calm Notifications[Script Filter] Script with argv '' finished
[19:11:48.166] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:11:48.643] Calm Notifications[Script Filter] Queuing argument ''
[19:11:48.854] Calm Notifications[Script Filter] Script with argv '' finished
[19:11:48.856] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:11:49.356] Calm Notifications[Script Filter] Queuing argument ''
[19:11:49.567] Calm Notifications[Script Filter] Script with argv '' finished
[19:11:49.576] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:11:50.072] Calm Notifications[Script Filter] Queuing argument ''
[19:11:50.335] Calm Notifications[Script Filter] Script with argv '' finished
[19:11:50.348] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:11:50.836] Calm Notifications[Script Filter] Queuing argument ''
[19:11:51.037] Calm Notifications[Script Filter] Script with argv '' finished
[19:11:51.047] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:11:51.550] Calm Notifications[Script Filter] Queuing argument ''
[19:11:51.809] Calm Notifications[Script Filter] Script with argv '' finished
[19:11:51.822] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:11:52.313] Calm Notifications[Script Filter] Queuing argument ''
[19:12:02.402] Calm Notifications[Script Filter] Queuing argument ''
[19:12:02.636] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:02.639] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:03.145] Calm Notifications[Script Filter] Queuing argument ''
[19:12:03.423] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:03.434] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:03.738] Calm Notifications[Script Filter] Processing complete
[19:12:03.742] Calm Notifications[Script Filter] Passing output 'install' to Conditional
[19:12:03.743] Calm Notifications[Conditional] Processing complete
[19:12:03.744] Calm Notifications[Conditional] Passing output 'install' to Open File
[19:12:09.993] Calm Notifications[Script Filter] Queuing argument ''
[19:12:10.138] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:10.143] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:11.484] Calm Notifications[Script Filter] Queuing argument ''
[19:12:11.634] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:11.640] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:12.141] Calm Notifications[Script Filter] Queuing argument ''
[19:12:12.349] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:12.352] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:12.858] Calm Notifications[Script Filter] Queuing argument ''
[19:12:13.063] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:13.073] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:13.571] Calm Notifications[Script Filter] Queuing argument ''
[19:12:13.793] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:13.802] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:14.301] Calm Notifications[Script Filter] Queuing argument ''
[19:12:14.460] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:14.462] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:14.964] Calm Notifications[Script Filter] Queuing argument ''
[19:12:15.150] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:15.153] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:15.655] Calm Notifications[Script Filter] Queuing argument ''
[19:12:15.848] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:15.860] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:16.355] Calm Notifications[Script Filter] Queuing argument ''
[19:12:16.555] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:16.558] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:17.063] Calm Notifications[Script Filter] Queuing argument ''
[19:12:17.266] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:17.275] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:17.775] Calm Notifications[Script Filter] Queuing argument ''
[19:12:17.980] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:17.982] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:18.490] Calm Notifications[Script Filter] Queuing argument ''
[19:12:18.689] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:18.697] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:19.198] Calm Notifications[Script Filter] Queuing argument ''
[19:12:19.391] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:19.394] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:19.902] Calm Notifications[Script Filter] Queuing argument ''
[19:12:20.162] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:20.180] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:20.667] Calm Notifications[Script Filter] Queuing argument ''
[19:12:20.856] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:20.868] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:21.362] Calm Notifications[Script Filter] Queuing argument ''
[19:12:21.564] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:21.567] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:22.066] Calm Notifications[Script Filter] Queuing argument ''
[19:12:22.237] Calm Notifications[Script Filter] Script with argv '' finished
[19:12:22.247] Calm Notifications[Script Filter] {"rerun":0.5,"items":[{"title":"Missing Calm Notifications Shortcut","subtitle":"Press ↩ to install it","arg":"install"}]}
[19:12:22.747] Calm Notifications[Script Filter] Queuing argument ''

  • 2 months later...
Posted

hello! i'm having a similar issue that @Anthony Browne was having. i've tried resetting my permissions, but it didn't help.

 

the specific issue i'm having looks like this: 

image.thumb.png.47c8982d3138fc057686089b88c636e9.png

 

then staying at the "getting status" stage forever.

 

after trying "dnd 30m" twice (but being unable to actually hit "enter"), here was the debugger output:

 

[14:30:21.039] Logging Started...
[14:30:23.972] Calm Notifications[Script Filter] Queuing argument ''
[14:30:27.309] Calm Notifications[Script Filter] Queuing argument '3'
[14:30:27.364] Calm Notifications[Script Filter] Queuing argument '30'
[14:30:27.629] Calm Notifications[Script Filter] Queuing argument '30m'
[14:30:42.847] Calm Notifications[Script Filter] Queuing argument ''
[14:30:43.735] Calm Notifications[Script Filter] Queuing argument '3'
[14:30:43.826] Calm Notifications[Script Filter] Queuing argument '30'
[14:30:44.142] Calm Notifications[Script Filter] Queuing argument '30m'
[14:31:40.805] Logging Stopped.

 

Posted

Welcome @saulmunn,

 

Every time that issue has happened, it has been some problem on macOS’ side. If removing Alfred completely from permissions (don’t just disable it) and adding it back didn’t work, reboot.

  • 6 months later...
Posted

Hey @vitor, this is definitely one of my most used workflows, so thank you!

 

Every few days it stops working however, and the only fix has been restarting my Mac.

 

Do you know what might cause it to just freeze on Getting status? Is there something else I can do instead of restarting my Mac?

 

Thanks!

 

image.thumb.png.4adf0d9367b57235065d3d0c84326110.png

image.thumb.png.0a35a7d091b323b5d4bc0580364465d3.png

Posted

Unfortunately, that’s not enough information to diagnose and I have no further reports of this, so it’ll be something specific to your setup that you’ll have to figure out.

  • 1 month later...
Posted

@vitor this is my most-used workflow, I love it, so thank you again.

 

Just wondering—are you aware if it's also possible to temporarily remove badge icons from apps?

 

The main culprit for me is Slack. I would love while in DND for badge icons to be hidden.

Posted
38 minutes ago, alfredpanda said:

are you aware if it's also possible to temporarily remove badge icons from apps?

 

Never heard of that, I seriously doubt it. Badges are part of Notifications, not Focus.

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...