hammerspoon2-docs
    Preparing search index...

    Function attachedKeyboards

    • Returns all currently attached keyboard HID devices. Each object has keyboardID (number — pass to keyboardCapsLockState()/setKeyboardLED()), productName (string), vendorName (string), productID (number), and vendorID (number). serialNumber (string) and locationID (number) are included when available.

      Returns Record<string, any>[]

      An array of objects describing each attached keyboard