Draggy Timer
Pull a timer straight out of your Mac's menu bar.
Setting a timer should take one second, not one dialog. Draggy Timer lives in your menu bar: grab the stopwatch icon, drag downward, and a timer droplet follows your cursor on a dotted leash. The further you pull, the longer the timer. Let go, optionally give it a name, and get on with your life — it chimes when time's up.
Features
- ⏱ Drag to set — the signature gesture. Pull down for minutes, keep pulling for hours. Drag back up to cancel.
- 📝 Optional labels — release the drag and type what the reminder is for ("tea", "stand-up", "pull the pizza out").
- 🚦 Progress dots — every running timer gets a colored dot in the menu that drifts from pastel red to green as it approaches completion.
- 🔢 Menu bar countdown — the soonest timer counts down right next to the icon.
- 🧺 Multiple timers — run as many as you like; the menu lists them all, click one to cancel it.
- 🔔 Persistent alarm — a gentle three-note chime loops until you choose Stop or Repeat from the notification, so you can't miss it.
- 🪶 Tiny and native — a single-file Swift/AppKit app. No Electron, no dock icon, no dependencies, ~1 MB.
The gesture
| Pull distance | Timer length |
|---|---|
| A short tug | 1 minute |
| Keep pulling | 1-minute steps up to 15 min |
| Further | 5-minute steps up to 1 hour |
| All the way down | 15-minute steps up to 4 hours |
| Barely moved / back up | Cancel |
Install
- Grab
DraggyTimer.dmg(or build it yourself — see below). - Open it and drag Draggy Timer into Applications.
- Launch it and look for the stopwatch in your menu bar. Allow notifications when asked so the Stop/Repeat alarm actions work.
Note: the app is ad-hoc signed (no paid Apple Developer account). If macOS complains on first launch, right-click the app → Open.
Build from source
Requires the Xcode Command Line Tools (xcode-select --install) — no Xcode project, no SPM, no pods.
git clone https://github.com/ConnerZhao/draggy-timer.git
cd draggy-timer
./build.sh
build.sh renders the app icon with CoreGraphics, compiles main.swift, assembles the .app bundle, ad-hoc signs it, and packages build/DraggyTimer.dmg — all in a few seconds.
How it works
The fun parts, all in main.swift:
- Pressing the
NSStatusItem's button starts a 120 Hz timer that polls the global cursor position and mouse-button state until release. The menu bar button's own tracking loop swallows drag events, so this needs no drag events and no Accessibility permission. Move more than a few points and it becomes a drag; release in place and it's a click that opens the menu. During a drag, a borderless transparentNSWindowoverlays the screen and draws the dotted leash and droplet withNSBezierPath. - Drag distance maps to minutes through a stepped curve (fine control for short timers, coarse for long ones).
- The looping alarm is a WAV synthesized in memory at launch — three sine notes (A5 → D6 → E6) with exponential decay — played on repeat by
AVAudioPlayeruntil aUNNotificationAction(Stop / Repeat) or the menu silences it. - Progress dots are tiny
NSImages tinted by interpolating hue from red (0°) to green (130°) against elapsed time, refreshed live while the menu is open.
Web demo
A faithful browser version lives in web/index.html — open it in any browser and drag down from the stopwatch in the fake macOS menu bar. Zero dependencies there too.
Credits
Draggy Timer is an unofficial, from-scratch tribute to Gestimer by Tuan Anh Nguyen, whose drag-a-timer-out-of-the-menu-bar idea is one of those interactions that's obvious only after someone else invents it. No code or assets from the original were used; "Gestimer" and its artwork belong to their author. If you want the real thing — with Apple Reminders sync, proper notarization, and years of polish — buy Gestimer 2 on the Mac App Store.
Built with Claude Code.
License
MIT — the code is yours to play with. The Gestimer name and design belong to Tuan Anh Nguyen.