hammerspoon2-docs
    Preparing search index...

    Function currentAssertions

    • Returns the active power management assertions from all processes on the system.

      Returns { name?: string; pid: number; type?: string }[]

      The assertions

      • Optionalname?: string

        The assertion's name, if it has one

      • pid: number

        The process that holds the assertion

      • Optionaltype?: string

        The kind of assertion, e.g. "PreventUserIdleDisplaySleep"