hammerspoon2-docs
    Preparing search index...

    Function on

    • Register a listener that fires whenever the keyboard input source changes. Read currentLayout(), currentSourceID(), or map inside the listener to inspect the new state.

      Parameters

      • event: "change"

        The event to listen for (the only event this module emits)

      • listener: () => void

        Called with no arguments when the input source changes

      Returns void