Sha256: b3cd67bc22d3ec1d9f2b830392bb63ac1e2fa1944bc537b3e207fb398dc0c508

Contents?: true

Size: 956 Bytes

Versions: 1

Compression:

Stored size: 956 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](http://github.com/busyloop/maclight/raw/master/ass/screenshot_capslock.jpg)

## Installation

    $ gem install maclight

## Usage

```bash
$ maclight --help

Usage: maclight <subcommand>

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-1.0.0 README.md