Sha256: 76998e3427b6298a35f9dd005ceb21e4da74d1e521fe6d8bb15a3f51810f6b56
Contents?: true
Size: 958 Bytes
Versions: 1
Compression:
Stored size: 958 Bytes
Contents
# MacLight [![Dependency Status](https://gemnasium.com/busyloop/maclight.png)](https://gemnasium.com/busyloop/maclight) MacLight lets you control the keyboard-LEDs (capslock, numlock) on your Mac. ## Screenshot ![capslock](https://github.com/busyloop/maclight/raw/master/ass/screenshot_capslock.jpg?raw=true) ## Installation $ gem install maclight ## Usage ``` $ maclight --help Usage: maclight <command> MacLight v1.0.0 - LED control utility Options: --version: Print version and exit --help, -h: Show this message Commands: keyboard Control keyboard LEDs ``` ## API Usage ```ruby #!/usr/bin/env ruby require 'maclight' # Turn both LEDs on MacLight.capslock(true) MacLight.numlock(true) sleep 2 # Turn both LEDs off MacLight.capslock(false) MacLight.numlock(false) ``` ## Credits MacLight is based on HID demonstration code by [Amit Singh](http://googlemac.blogspot.de/2008/04/manipulating-keyboard-leds-through.html).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maclight-2.0.0 | README.md |