hammerspoon2-docs
    Preparing search index...

    Function allowSleep

    • Releases a previously created sleep prevention assertion.

      Parameters

      • type: string

        The sleep type to allow again. One of: "display", "systemIdle", "system".

      Returns boolean

      true if an assertion existed and was released, false if none was active.