Adjust LCD brightness with mouse wheel
commitfddbe08d91a1d075056e145d9563b478660d1cb4
authorCarlos R. Mafra <crmafra@gmail.com>
Mon, 13 Sep 2010 01:52:43 +0000 (13 03:52 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 13 Sep 2010 01:52:43 +0000 (13 03:52 +0200)
treeb5092a475d10d2238e65e8515e6477b8565e3e3e
parent1ad159c81eed3c33c85b9de000f131464dc7ecf2
Adjust LCD brightness with mouse wheel

Using the mouse wheel up/down over the dockapp area will change
the lcd brightness up/down accordingly.

Notes:

  1. The code assumes the hard coded path relevant for my Vaio,
     namely /sys/class/backlight/acpi_video0.

  2. wmlaptop2 now has to be setuid,
Makefile
src/brightness.c [new file with mode: 0644]
src/brightness.h [new file with mode: 0644]
src/event.c