With Raycast 1.92.0, we introduced two Shortcuts to automate Raycast Focus.
- Start Focus Session
- Complete Focus Session
They can be discovered in the Apple Shortcuts app sidebar. This can be used to create complex workflows. Such as playing music and set Do Not Disturb on along with a focus session.
The duration parameter is optional. If you don't specify it, a focus session without a timer will start. You'll need to manually end it or complete it using the Shortcut.