Skip to content

A minimalistic 20-20-20 rule reminder app written in Go. Uses procedural OpenGL rendering via GLFW.

License

Notifications You must be signed in to change notification settings

Votline/Clarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clarity - 20-20-20 Eye Care Reminder

Clarity is a minimalist and lightweight application that helps you protect your eyesight by enforcing the 20-20-20 rule. Built with Go and OpenGL(Go-gl), pops up when it's time to take a break.

Description

Every 20 minutes, Clarity will play a sound signal and display a simple timer, reminding you to look at something 20 feet (6 meters) away for 20 seconds. This helps reduce eye strain caused by prolonged screen time.

Key Features:

  • 20-20-20 Rule Enforcement: Accurate 20-minute work / 20-second break cycles
  • Procedural UI: Renders clean, font-less graphics
  • Audible Alerts: Clear sound signals embedded directly into the binary
  • Single Binary Deployment: All assets (sound, config) compiled into executable - no external dependencies
  • Configurable: Customize window size, position, colors, and timing via JSON configuration
  • Lightweight: Minimal resource consumption

Controls & Interaction

  • Timer Window: Automatically appears when a break is due
  • Automatic Dismissal: The break window closes automatically after 20 seconds with a sound

Technologies

Installation & Building

  1. Clone the repository:

    git clone https://github.com/Votline/Clarity
    cd Clarity
  2. Download dependencies:

    go mod download
  3. Build the application:

    go build -o clarity
  4. Run:

    ./clarity 

Licenses

This project is licensed under MIT.

The full license texts are available in the licenses directory