hammerspoon2-docs
    Preparing search index...

    Function addWatcher

    • Registers a listener that fires whenever any of the user's locale settings change. The listener is called with no arguments. Read current() or details() inside the callback to inspect the new state. The OS subscription starts lazily on the first listener and is released automatically when the last listener is removed via removeWatcher.

      Parameters

      • listener: () => void

        A function called when locale settings change.

      Returns void