explaingit

notaadhil/gut-genug-distraction-tracker

Analysis updated 2026-05-18

1PythonAudience · generalComplexity · 2/5Setup · moderate

TLDR

A webcam based desktop app that plays a loud video alarm when it catches you looking away from your screen or doomscrolling, until you look back.

Mindmap

mindmap
  root((gut-genug-distraction-tracker))
    What it does
      Detects looking away
      Plays video alarm
      Stops when you refocus
    Tech stack
      Python
      OpenCV
      MediaPipe
    Use cases
      Doomscroll interruption
      Custom alarm videos
      Multi user calibration
    Audience
      Focus seeking individuals
    Setup
      Windows run.bat
      Manual macOS setup
      Webcam calibration

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Get interrupted by video and audio automatically whenever you look down at your phone or away from your screen.

USE CASE 2

Use the calibration wizard so the tool learns your normal eye and head position without manual setup.

USE CASE 3

Load your own video clips into the assets folder to customize the alarm content.

USE CASE 4

Reset calibration with a key press so a different person can use the tool on the same computer.

What is it built with?

PythonOpenCVMediaPipeffpyplayerAppleScript

How does it compare?

notaadhil/gut-genug-distraction-tracker0xustaz/streamgatea-bissell/unleash-lite
Stars111
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity2/54/54/5
Audiencegeneraldeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a working webcam and installing Python dependencies like OpenCV and MediaPipe before first use.

In plain English

Gut Genug Distraction Tracker is a desktop program for Windows and Mac that uses your webcam to catch you when you get distracted, and interrupts you with a loud video and audio alarm until you look back at your screen. It watches your eyes and the angle of your head in real time. If you look down at your phone, glance away toward another monitor or the TV, or otherwise turn away from the screen, it immediately plays a video clip, described in the README as the Gut Genug anthem, along with sound. As soon as you look back at the computer, the video pauses and goes quiet on its own. Everything runs locally on your computer using your webcam, with nothing sent anywhere else. A startup wizard calibrates where your eyes and head normally sit when you look at the screen, so no manual configuration is needed, and it remembers that calibration for future launches unless you press a key to reset it. To avoid false alarms, the tool only counts a downward glance as distraction if both your eyes and your head tilt down together, so looking down briefly to type on a keyboard will not trigger it. The alarm volume also builds gradually, starting quiet and getting louder the longer you stay distracted, up to full volume. You can drop several video files into a folder and the app will pick one at random each time you get distracted. Under the hood it is written in Python and relies on OpenCV to read the webcam feed, a Google library called MediaPipe to track detailed points on your face and head position, and either a video playback library on Windows or AppleScript controlling QuickTime Player on Mac. Setup on Windows can be done by running a batch file that creates a virtual environment, installs the needed packages, and starts the tracker automatically. On Mac, setup is done manually through a few terminal commands before running the main script. The project credits an earlier similar tool as its inspiration.

Copy-paste prompts

Prompt 1
Help me install the dependencies and run this distraction tracker on Windows using the run.bat script.
Prompt 2
Walk me through the manual setup steps for running this tracker on macOS.
Prompt 3
Explain how the head pose fusion feature avoids false alarms while I am typing.
Prompt 4
Show me how to add my own alarm videos to the assets folder for this project.

Frequently asked questions

What is gut-genug-distraction-tracker?

A webcam based desktop app that plays a loud video alarm when it catches you looking away from your screen or doomscrolling, until you look back.

What language is gut-genug-distraction-tracker written in?

Mainly Python. The stack also includes Python, OpenCV, MediaPipe.

How hard is gut-genug-distraction-tracker to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is gut-genug-distraction-tracker for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.