Skip to content
markksantosPublic

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

👁️ Aware

Aware icon

Track your screen time — idle-aware, automatic, always in the menu bar

Swift SwiftUI macOS License

Features · Getting Started · Tech Stack


✨ Features

  • 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

🚀 Getting Started

Prerequisites

  • macOS 13.0+ (Ventura)
  • Swift 5.9+
  • Accessibility permission (prompted on first launch)

Installation

git clone https://github.com/markksantos/Aware.git
cd Aware
swift build
open .build/debug/AwareApp

Or build and run via the included script:

./init.sh

Permissions

Aware 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.

🛠️ Tech Stack

Category Technology
Language Swift 5.9+
UI SwiftUI
Idle Detection CGEventSource
State Combine, UserDefaults
Platform macOS 13+ (Ventura)

📁 Project Structure

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

📄 License

MIT License © 2025 Mark Santos

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages