hammerspoon2-docs
    Preparing search index...

    Function addWatcher

    • Watch a key for changes.

      Parameters

      • key: string

        The name of the setting to watch

      • listener: (key: string, newValue: any) => void

        Called with the key and its new value whenever it changes

      Returns void