+
+## Focus Checks
+
+### Usage
+
+You can ask a script to only continue if it matches a focus mode, or to halt if it encounters it. You can do this by passing pipe separated strings to VAR_RUN_ON_FOCUS or VAR_HALT_ON_FOCUS. For example, this will only run the script if "Personal" or "Do Not Disturb" are active:
+
+```
+VAR_RUN_ON_FOCUS="Personal|Do Not Disturb"
+```
+
+And this will halt the script only if the focus is Work
+
+```
+VAR_HALT_ON_FOCUS="Work"
+```
+
+If neither variable is set, then all checks will be disabled.
+
+The script will only appear or disappear when it's next refreshed. If you
+want this faster, trigger a full refresh of your plugins.
+
+### Setup
+
+Download and copy focus.utils.sh to your SwiftBar directory on the same directory as the scripts that use this functionality.
+
+### Permissions
+
+For the script to correctly get focus data, it requires full disk access. You
+can do this by going to System Settings > Privacy & Security > Full Disk Access,
+and adding SwiftBar to the list.
+
+### For Developers
+
+If you want to include this functionality in your script, check the script
+comments for instructions on how to use it in your scripts.
+
+=> ./swiftbar/focus.utils.sh ⧇ source