hammerspoon2-docs
    Preparing search index...

    Function currentLayout

    • Returns the localized name of the current keyboard layout. Uses the base keyboard layout, which is the underlying layout even when an input method (such as a CJK input method) is also active.

      Returns string | null

      The display name of the active layout (e.g. "U.S.", "British"), or null.