In addition to running custom BASH commands, Focus can be controlled from other apps (like the command line, a pomodoro tracker or Alfred).

Here's how to invoke Focus from the command line:

## Turn focus on

`open focus://focus`

## Turn focus on for 15 minutes

`open focus://focus?minutes=15`

## Toggle focus

`open focus://toggle`

## Open preferences

`open focus://preferences`

Learn more ways to script Focus »