https://github.com/mguellsegarra/activity-tracker-mac
A simple, focused system tray application that tracks your computer activity, built with Go.
https://github.com/mguellsegarra/activity-tracker-mac
activity-tracker go macos productivity-tools screentime systemtray
Last synced: 3 months ago
JSON representation
A simple, focused system tray application that tracks your computer activity, built with Go.
- Host: GitHub
- URL: https://github.com/mguellsegarra/activity-tracker-mac
- Owner: mguellsegarra
- License: mit
- Created: 2024-04-21T09:49:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-18T08:54:08.000Z (6 months ago)
- Last Synced: 2025-07-04T17:14:55.056Z (3 months ago)
- Topics: activity-tracker, go, macos, productivity-tools, screentime, systemtray
- Language: Go
- Homepage:
- Size: 2.53 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Activity Tracker for Mac
A simple, focused system tray application that tracks your computer activity, built with Go. Created out of frustration with macOS's native Screen Time feature, which has proven to be unreliable and problematic.
Inspired by [timeow](https://github.com/f-person/timeow-mac) π
## π· Screenshot
## π€ Why Another Activity Tracker?
This project exists because the native macOS Screen Time tracking is fundamentally broken - it often fails to track activity correctly, provides inconsistent data, and is overly complex. Instead of trying to do everything, this application does one thing and does it well: tracking your actual computer activity time accurately and reliably.
## β¨ Features
- Lives quietly in your system tray
- Monitors computer activity and idle time with precision
- Built with native Go libraries for optimal performance
- Simple by design - no bloat, no unnecessary features## π§ Prerequisites
- Go 1.22.2 or higher
- macOS## π₯ Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/activity_tracker.git
cd activity_tracker
```2. Install dependencies:
```bash
go mod download
```3. Build the application:
```bash
go build
```## π Usage
Run the application:
```bash
./activity_tracker
```The application will appear in your system tray.
## βοΈ Adding to macOS Startup
To make the activity tracker start automatically when you log in to your Mac:
1. Create a Launch Agent:
```bash
mkdir -p ~/Library/LaunchAgents
```2. Create a new file named `com.user.activity_tracker.plist` in the LaunchAgents directory with the following content (replace the path with your actual build path):
```xml
Label
com.user.activity_tracker
ProgramArguments
/path/to/your/activity_tracker
RunAtLoad
KeepAlive
```3. Load the Launch Agent:
```bash
launchctl load ~/Library/LaunchAgents/com.user.activity_tracker.plist
```Alternatively, you can also add the application to your Login Items:
1. Open System Settings
2. Go to General > Login Items
3. Click the '+' button
4. Navigate to and select your activity_tracker executable
5. The application will now start automatically when you log in## π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
If you find this extension useful, please consider:
- β Starring the repository
- π Reporting any bugs you find
- π‘ Suggesting new features## π License
This project is licensed under the [**MIT License**](https://github.com/mguellsegarra/activity-tracker-mac/blob/main/LICENSE).
## π Author
I'm Marc GΓΌell Segarra, a freelance software developer at [Ondori.dev](https://ondori.dev).
## β Buy Me a Coffee
If you found this extension useful, consider **[buying me a coffee](https://buymeacoffee.com/mguellsegarra)!**