Skip to content

halfcaf 0.3.0

Choose a tag to compare

@stephenway stephenway released this 04 May 22:21
· 3 commits to main since this release
c98d137

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 WakeWatcher polling that re-asserts brightness 0 on display
    wake, after a probe spike showed
    CGDisplayRegisterReconfigurationCallback,
    NSWorkspace.screensDidWake, and IORegisterForSystemPower all
    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 run with capability
    detection: prints clear setup instructions if the
    halfcaf-focus-on / halfcaf-focus-off shortcuts are missing,
    continues without Focus toggling rather than failing.
  • Atomic state.json write under
    ~/Library/Application Support/halfcaf/ before any system
    mutation. Auto-restores on next halfcaf launch 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.
  • DispatchSource signal 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.