Skip to content

Add a keep-awake toggle #97

Closed as not planned
Closed as not planned

Description

@Seb-GRAF

Problem

Keeping the Mac awake through a long build, download or presentation means running caffeinate in a terminal or installing another menu-bar app.

Proposal

  • A keepAwake widget type. Clicking it holds a power assertion (IOPMAssertionCreateWithName) that prevents idle sleep, including display sleep unless allowDisplaySleep is true. Clicking again releases it.
  • While it holds the assertion, fields.state is on, so rules can set the active state. An optional duration in minutes releases it automatically.

Possible today

Partly. A stream provider can print a line and then run caffeinate -di, which keeps the Mac awake while it runs, but turning it on and off means enabling and disabling the widget in the configuration.

Related

None found.

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions