Get macOS Focus mode via CLI
brew install legnoh/etc/mac-focus-cli
Important
You must set "Full Disk Access" to focus
command.
Because this application accesses below files.
~/Library/DoNotDisturb/DB/ModeConfigurations.json
~/Library/DoNotDisturb/DB/Assertions.json
## get now focus mode name
focus get
## get by json format
focus get --json