Repository navigation
halfcaf 0.3.0
Historical entry. Built from source via the Homebrew tap formula at the time. Binaries were not packaged until v1.0.0.
Added
- Initial CLI release.
- IOPMAssertion (
PreventUserIdleSystemSleep) to keep the system
awake without preventing display sleep. - Multi-display brightness dimming via
DisplayServicesSetBrightness
(private framework, dlopen'd at runtime). - 500ms
WakeWatcherpolling that re-asserts brightness 0 on display
wake, after a probe spike showed
CGDisplayRegisterReconfigurationCallback,
NSWorkspace.screensDidWake, andIORegisterForSystemPowerall
fail to fire on display-only sleep on macOS 26. - Audio mute via
osascript, capturing both volume and mute state
independently. - Optional Focus / DND toggling via
shortcuts runwith capability
detection: prints clear setup instructions if the
halfcaf-focus-on/halfcaf-focus-offshortcuts are missing,
continues without Focus toggling rather than failing. - Atomic
state.jsonwrite under
~/Library/Application Support/halfcaf/before any system
mutation. Auto-restores on nexthalfcaflaunch if the recorded
pid is no longer alive. - Wait conditions:
--timeout,--until-process,--until-command,
trailing--for direct command execution. - Opt-out flags:
--no-dim,--no-mute,--no-focus. --restore,--status,--version,--help.DispatchSourcesignal handlers for SIGINT, SIGTERM, SIGHUP.- Homebrew tap formula draft (source-build).
- 18 unit tests for duration parsing, state JSON round-trip, and
atomic state-file persistence. - README with full walkthrough including the optional Shortcuts.app
setup.