How to Automate the 20-20-20 Rule on macOS

Automating your eye breaks is the most effective way to prevent digital eye strain, fatigue, and headaches without breaking your focus or coding sessions.

If you spend more than four hours a day staring at a computer screen, you have likely experienced dry eyes, blurry vision, or mild headaches. These are classic symptoms of Computer Vision Syndrome (CVS). The most widely recommended solution by optometrists is the 20-20-20 rule.

The rule is simple: Every 20 minutes, look at something at least 20 feet away for at least 20 seconds.

While the concept is straightforward, remembering to actually do it while deep in a coding session or design loop is nearly impossible. That is where automation comes in.

Why Traditional Timers Fail

Most developers try to solve this by setting simple kitchen timers, using phone alarms, or running basic cron scripts. However, these solutions quickly fail for two reasons:

Automate with StepAway

StepAway is a native macOS menu bar app designed specifically to solve this. Built in pure Swift/SwiftUI, it runs locally on less than 25MB of RAM with zero tracking or account requirements.

How StepAway Automates Your Eye Care

StepAway runs silently in your Mac's menu bar and monitors your work patterns in the background:

Setting Up Your First Automations

Getting started is simple. Download StepAway, open the settings from the menu bar icon, and configure your intervals. Set your short break interval to 20 minutes and the duration to 20 seconds. Toggle on "Meeting Awareness" and "Idle Detection" to ensure the timer fits your workflow, not the other way around.

Download StepAway on the App Store

More Ergonomics & Screen Wellness Guides: