hammerspoon2-docs
    Preparing search index...

    Function isSleepPrevented

    • Returns whether Hammerspoon is currently preventing the specified type of sleep.

      Parameters

      • type: string

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

      Returns boolean

      true if this sleep type is currently being prevented.