W3cubDocs

/Hammerspoon

hs.hid.led

HID LED interface for Hammerspoon, controls the state of keyboard LEDs

API Overview

  • Functions - API calls offered directly by the extension

API Documentation

Functions

set
Signature hs.hid.led.set(name, state) -> bool
Type Function
Description

Assigns HID LED to the desired state

Parameters
  • name - LED name: "caps", "scroll" or "num"
  • state - A boolean indicating desired state
Returns
  • true if success, false if error
Notes
  • This function controls the LED state only, to modify capslock state, use hs.hid.capslock.set
Source extensions/hid/hid.lua line 66

© 2014–2017 Hammerspoon contributors
Licensed under the MIT License.
https://www.hammerspoon.org/docs/hs.hid.led.html