Project

maclight

0.04
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Control your Mac keyboard LEDs (capslock, numlock)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.1.0

Runtime

>= 1.2.2
 Project Readme

MacLight 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).