Add support for keyboard backlight on Apple laptops
commit51594f0fda8157236bd20dadddf2fa53f7909b9b
authorCarlos R. Mafra <crmafra@gmail.com>
Mon, 14 Jan 2013 00:05:50 +0000 (14 00:05 +0000)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 14 Jan 2013 01:54:08 +0000 (14 01:54 +0000)
treeba08c3f77fdeaab7d2f7ed5ef439f2c47eba2289
parente610dd8dca03ef817499632dacd855d1962a8dfc
Add support for keyboard backlight on Apple laptops

Use the command line option --apple to turn on the automatic keyboard backlight
management.

If the light sensor detects a dark environment (sensor value <=3) the
keyboard backlight is turned on to maximum brightness and to minimum
otherwise.

Most of the code is from 'lightum'.

Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
Makefile
src/apple.c [new file with mode: 0644]
src/apple.h [new file with mode: 0644]
src/event.c
src/main.c
src/main.h