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

Add trigger to toggle Do Not Disturb when on a call #12

Merged
merged 3 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions triggers/do-not-disturb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Do Not Disturb

Enable the Do Not Disturb focus mode when on a call.

This trigger requires that you configure two "shortcuts" in the macOS Shortcuts app.

The first should be named `dnd-on`, and it should turn the Do Not Disturb focus mode "on" until "Turned Off".

The other should be named `dnd-off`, and it should turn the Do Not Disturb focus mode "off".
Binary file added triggers/do-not-disturb/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions triggers/do-not-disturb/call-connected
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

# This trigger requires you to have created a shortcut in the Shortcuts macOS
# app named "dnd-on", which enables Do Not Disturb focus.

shortcuts run "dnd-on"
6 changes: 6 additions & 0 deletions triggers/do-not-disturb/call-ended
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

# This trigger requires you to have created a shortcut in the Shortcuts macOS
# app named "dnd-off", which disables Do Not Disturb focus.

shortcuts run "dnd-off"
6 changes: 6 additions & 0 deletions triggers/do-not-disturb/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Do Not Disturb",
"description": "Enable the Do Not Disturb focus mode when on a call",
"platforms": ["macos"],
"language": "bash"
}