Raycast Manual
Raycast Manual
⬇️

How to import focus categories

You can import Raycast Focus categories from a JSON file using Import Focus Categories command (available in Raycast 1.92.0+).

image

JSON Format

  • Root object - Array of focus categories
  • Category object
    • title - Category title. Type: String (required)
    • apps - Bundle identifiers of applications to block. Type: Array<String>
    • websites - Hostname of websites to block (e.g. "x.com", "facebook.com"). Type: Array<String>
icon

Focus category title must be unique. Choose a title different from those already used by other categories.

[
  {
    "title" : "Gambling",
    "websites" : [
      "winamax.com",
      "stake.com"
    ]
  },
  {
    "title": "French News",
    "apps" : [
      "com.apple.news"
    ],
    "websites": [
      "lefigaro.fr",
      "lemonde.fr",
      "liberation.fr",
      "lequipe.fr"
    ]
  }
]
Example of “focus-categories.json” file
focus-categories.json0.3KB

After the import is completed, you will see how many categories were added and how many duplicates were skipped. If a category has the same title, it’s considered to be a duplicate.

image
SlackXInstagram