hammerspoon2-docs
    Preparing search index...

    Function currentSourceID

    • Returns the reverse-DNS identifier of the currently selected keyboard input source.

      Returns string | null

      A string such as "com.apple.keylayout.US", or null if unavailable.