There is a ball on your desktop and it will not leave.
It hangs from a rope over everything you have open, swinging when you nudge it. Drag it around. Fling it and watch it ricochet off the edges of your screen. Cut the rope and let it loose. Put a clown face on it if that helps.
You can also stop working entirely and shoot hoops.
./build.sh release
open Bonk.app
You need macOS 14 or newer and a Swift toolchain. Bonk lives in the menu bar, with no Dock icon and no window. Clicks pass straight through to whatever is underneath, except when they land on the ball.
- Drag and let go to throw. Hold still before you release and it just drops.
- Double-click the ball to cut the rope. Double-click again to reattach.
- Option+F makes it go away. Press it again when you miss it.
- Basketball mode puts a hoop on your screen. Two points a shot, and it only counts if the ball comes down through the rim. The score sits in your menu bar so you can pretend it means something.
Everything else is in the menu bar item: hide the ball, cut the rope, reset it back to the top, change skins, reset your score.
Ten of them: Clown, Cool, Zany, Rage, Pumpkin, Moon, Soccer, 8-Ball, Eyes, and Basketball. Basketball is the default. They are emoji, lit and shaded so they read as actual spheres rather than stickers.
Settings has sliders for gravity, bounce, air drag, swing, throw speed, spin, how stretchy the rope is, and how heavy the ball feels. Plus rope length and ball size, a haptics toggle, and a button to undo whatever you did to it.
Turn gravity down and the ball floats. Turn bounce up and it never settles. Both are more fun than the defaults.
If you want to hand the app to someone else, build.sh will sign and notarize
it:
SIGN_IDENTITY="Developer ID Application: Your Name (TEAMID)" \
NOTARY_PROFILE="your-notarytool-profile" \
./build.sh release
SIGN_IDENTITY on its own signs with the hardened runtime. Add
NOTARY_PROFILE and it also submits, waits, and staples. Set neither and the
app receives an ad-hoc signature suitable for local use, but not distribution.
