hammerspoon2-docs
    Preparing search index...

    Function once

    • Register a listener that fires at most once for changes to a key.

      Parameters

      • key: string

        The name of the setting to watch

      • listener: (newValue: any) => void

        Called once, then automatically removed

      Returns void