Smart aleck flashes and plays an alert sound any time you type the word "just".
- macOS 10.15 or later.
- Xcode 11 or later.
-
Clone the repository to your local machine:
git clone https://github.com/lachygroom/smart-aleck.git
-
Open the project in Xcode:
open JustDetector.xcodeproj
-
Build and run the application:
- Select the target in Xcode and run it on your Mac.
For the application to monitor keystrokes across all applications, you must grant it Accessibility permissions:
- Open System Preferences.
- Go to Security & Privacy > Privacy > Accessibility.
- Click the lock icon to make changes (you may need to enter your administrator password).
- Find the application in the list and check the box to grant permissions.
- Restart the application for the changes to take effect.
Once running, the application will:
- Monitor for the specified keystroke ("just") across all applications.
- Log each occurrence with the surrounding context to a database.
- Update the keystroke count displayed in the menu bar in real-time.