Skip to content

legnoh/focus-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

focus-cli

Get macOS Focus mode via CLI

install

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
full disk access in settings

usage

## get now focus mode name
focus get

## get by json format
focus get --json