Focus Mode Persistence
As of June 2022, there’s no way to query the currently active Focus Mode.
A strategy to achieve similar functionality is to add Shortcut Automations for every Focus Mode such that:
- A file in iCloud contains the name of the currently active Focus Mode
- Whenever a Focus Mode mode is activated, its name is written to the file
- Whenever a Focus Mode mode is deactivated, a
None
is written to the file
Shortcuts
Set Focus Mode

Unset Focus Mode

Get Focus Mode

Write Variable Shortcut

Read Variable Shortcut
