Control your Mac keyboard LEDs
Switch branches/tags
Clone or download
Latest commit e378466 Mar 27, 2018
Permalink
Failed to load latest commit information.
ass MacLight Dec 30, 2012
bin MacLight Dec 30, 2012
ext/maclight Fix renamed macros Mar 27, 2018
lib/maclight v3.0.1 Mar 27, 2018
.gitignore MacLight Dec 30, 2012
Gemfile MacLight Dec 30, 2012
LICENSE.txt MacLight Dec 30, 2012
README.md Add gem badge. May 21, 2016
Rakefile MacLight Dec 30, 2012
maclight.gemspec Add Rake development dependency Mar 21, 2015

README.md

MacLight Dependency Status Gem Version

MacLight lets you control the keyboard LEDs on your Mac or Macbook.

Screenshot

capslock

Installation

$ gem install maclight

Usage

$ maclight --help

Usage: maclight <command>

MacLight v3.0.0 - LED control utility

Options:
   --version:   Print version and exit
  --help, -h:   Show this message

Commands:
   keyboard   Control keyboard LEDs

API Usage

#!/usr/bin/env ruby

require 'maclight'

# Turn LEDs on
MacLight.all_leds(true)

sleep 2

# Turn LEDs off
MacLight.all_leds(false)

Notice

MacLight can currently only toggle all LEDs at once and has only been tested on OSX 10.11.3 (El Capitan).