- Real-Time Session Tracking — Displays elapsed active time in the menu bar since your last idle period
- Idle Detection — Automatically resets the session timer when you step away (configurable 1–30 minute threshold)
- Daily Total — Accumulates your total screen time for the day, persisting across app restarts
- Color Alerts — Timer turns red when screen time exceeds a configurable threshold (1h, 2h, 3h, 4h, or off)
- Show/Hide Seconds — Toggle seconds display for a cleaner or more precise readout
- Midnight Auto-Reset — Daily totals reset automatically at midnight
- Menu Bar Only — No dock icon, minimal footprint
- macOS 13.0+ (Ventura)
- Swift 5.9+
- Accessibility permission (prompted on first launch)
git clone https://github.com/markksantos/Aware.git
cd Aware
swift build
open .build/debug/AwareAppOr build and run via the included script:
./init.shAware requires Accessibility permission to detect idle state via mouse and keyboard activity monitoring. macOS will prompt you on first launch, or grant it manually in System Settings → Privacy & Security → Accessibility.
| Category | Technology |
|---|---|
| Language | Swift 5.9+ |
| UI | SwiftUI |
| Idle Detection | CGEventSource |
| State | Combine, UserDefaults |
| Platform | macOS 13+ (Ventura) |
Aware/
├── Sources/
│ ├── AwareApp/
│ │ └── AwareApp.swift # App entry point with MenuBarExtra
│ ├── AwareEngine/
│ │ ├── ActivityMonitor.swift # Idle detection, session & daily tracking
│ │ └── TimeFormatter.swift # Time display formatting
│ └── AwareUI/
│ └── MenuBarView.swift # Popover with settings, sliders, toggles
├── Tests/
│ └── AwareTests/
│ └── TimeFormatterTests.swift
├── init.sh # Build, test, and open
└── Package.swift
MIT License © 2025 Mark Santos