FocusTap is a simple macOS utility based on a powerful mindfulness technique: counting how many times you catch your mind wandering and consciously bring it back to your task.
Quick overlay showing your focus returns
Main dashboard window with counter and reset functionality
Think of it like meditation - when meditating, the goal isn't to never have thoughts, but to notice when you're distracted and gently return to focus. The same principle applies to work and study:
- You're working on a task
- Your mind wanders (checking social media, random thoughts, etc.)
- You catch yourself being distracted
- You press the hotkey to count this moment of awareness
- You return to your task
This simple act of counting these "returns to focus" helps you:
- Build self-awareness of your distraction patterns
- Turn distractions into opportunities for mindfulness
- Develop stronger concentration over time
- Make focus improvement measurable and tangible
-
When you notice you've been distracted and want to return to focus:
- Press
⇧⌃⌥⌘Z(Shift + Control + Option + Command + Z) - A small overlay appears showing your focus return count
- The counter in the dashboard updates
- Press
-
The dashboard shows your current count and lets you:
- View your total focus returns
- Reset the counter when needed
This app was inspired by this video, where the creator uses a physical tally counter to track focus returns. While physical counters are great, mine would enter sleep mode after 30 seconds, requiring a check before each press—adding friction to the process. FocusTap eliminates this friction by providing an always-ready software solution.
- Clone this repository
- Open the project in Xcode
- Build the project (Product > Archive)
- When selecting the app location after build:
- The
/Libraryfolder might be hidden in Finder - Press
Command (⌘) + Shift + .to show hidden folders
- The
- Move FocusTap.app to your Applications folder
FocusTap needs two permissions to function:
-
Input Monitoring
- Required to detect the keyboard shortcut
- Prompted on first launch
- Can be enabled in System Settings → Privacy & Security → Input Monitoring
- Important: Click the
+button in settings and select FocusTap.app
-
Accessibility
- Required for keyboard shortcut monitoring
- Prompted on first launch
- Can be enabled in System Settings → Privacy & Security → Accessibility
- Important: Click the
+button in settings and select FocusTap.app
If permissions aren't automatically prompted:
- Open System Settings
- Navigate to Privacy & Security
- Enable FocusTap in both Input Monitoring and Accessibility sections
- Launch FocusTap
- Grant required permissions when prompted
- The main dashboard window will appear
- Press
⇧⌃⌥⌘Zwhenever you catch yourself being distracted and want to return to focus - Use the dashboard to track your count and reset when needed
You can use Karabiner-Elements to rebind the Fn key to trigger the FocusTap shortcut, making it easier to use. Here's the configuration:
{
"description": "FocusTap",
"manipulators": [
{
"from": { "key_code": "fn" },
"to": [
{
"key_code": "z",
"modifiers": [
"left_shift",
"left_command",
"left_control",
"left_option"
]
}
],
"type": "basic"
}
]
}Built with:
- SwiftUI
- AppKit
- macOS Event Handling APIs
- Cursor