IMPORTANT! This tutorial only works on macOS BigSur. Let me know on my email if you've tried this and it doesn't work.
Setting up Do Not Disturb without AppleScript experience is the easiest way to keep you stay focused and out of distraction. Instead of turning it on/off manually, Session can help you automate it.
There are 5 steps to follow:
Let's get started.
If you have Cresent Moon icon (Do Not Disturb) on menu bar, you can skip this step. Otherwise, please follow the gif:
Do Not Disturb
Do Not Disturbtext header into menu bar
Turn Do Not Disturb On/Offcheckbox.
CMD + SHIFT + OPT + CTRL + Dkey combination while the input is focused.
Great! Now you can toggle Do Not Disturb with keyboard shortcut! What we need to do next is to tell Session to press that keyboard automatically when Session has started, and when you have stopped working.
You're going to download a code to toggle the Do Not Disturb. It basically does this:
CMD + SHIFT + OPT + CTRL + Dkeyboard shortcut with code.
CMD + SHIFT + OPT + CTRL + Dto turn off the Do Not Disturb.
Download the pre-made AppleScript code here
zipfile on Session's AppleScript folder.
session_end.scpton your Mac
open appple script folderon Session's setting page.
Test session Start,
Test stop Working,
If it didn't ran, make sure you have put the script in correct location. Refer to screenshot above. Otherwise, you can contact me on my email
Congratulations! Now Session will turn on and off Do Not Disturb while you're working :)
If you want to quit distracing app like
Slack, play spotify playlist—consider learning and writing your first AppleScript. We've made a tutorial for you!