AwakeBar
v1.0.1macOS 12+MENU BAR UTILITY • FAIL-SAFE IOKIT ENGINE • MIT LICENSE
A macOS menu bar app that keeps your Mac awake — built with a fail-safe native IOKit C assertion helper, zero windows, and zero telemetry. It lives exclusively in the menu bar: no Dock icon, no window clutter.
How it looks in your macOS Menu Bar
Click the mug in your top-right menu bar to toggle it instantly. Both states share the exact same silhouette dimensions so your menu bar icons never jitter or resize when toggled.
Hardened Systems Architecture
IOKIT NATIVE • PIPED STDIN HEARTBEATMost sleep-blocker utilities rely on default electron APIs or bulky menus that leave dangling sleep blocks if killed. AwakeBar compiles a ~50 KB native C binary directly calling Apple's IOKit.framework, governed by a strict pipe heartbeat.
Uses IOPMAssertionCreateWithName to claim NoIdleSleepAssertion labeled explicitly as "AwakeBar" in macOS power management logs.
The app holds the helper's stdin stream open. When keep-awake is toggled off, or if the process exits, crashes, or is force-killed, the OS kernel drops the assertion immediately.
If the compiled helper cannot spawn due to restricted permissions or architecture mismatch, AwakeBar automatically falls back to Electron's powerSaveBlocker rather than silently letting your Mac sleep.
Tray icons are generated with analytical signed distance functions (SDF) rendered into macOS Template images at 1x, 2x, and 3x with zero external image dependencies.
Verifying via macOS Terminal
AUDIT POWER MANAGEMENTYou can independently verify that the sleep assertion is registered cleanly under AwakeBar's name with macOS's native pmset utility:
pmset -g assertions
Assertion status system-wide:
PreventUserIdleSystemSleep 1
PreventUserIdleDisplaySleep 0
Listed by owning process:
pid 40666(AwakeBar-sleep): NoIdleSleepAssertion named: "AwakeBar"First Launch & Gatekeeper Notice
AwakeBar is 100% free, open-source software and is not signed with a paid Apple Developer certificate. On first launch, macOS Gatekeeper may flag it as an unverified application.
To open it, move AwakeBar.app to /Applications, then either right-click and choose Open, or run:
xattr -dr com.apple.quarantine /Applications/AwakeBar.appRemoves macOS quarantine flagBuilding from Source
Requires Node.js and the Xcode Command Line Tools for clang (xcode-select --install):
git clone https://github.com/builtbyashish/awakebar.git cd awakebar npm install npm run make # Compiles native C helper and packages AwakeBar.app