dlight Code
Brought to you by:
drull
File | Date | Author | Commit |
---|---|---|---|
COPYING | 2011-02-22 | drull | [r3] Changed license. Small fixes in .h file. |
Makefile | 2011-02-22 | drull | [r5] moved config file to ~/.config/dlight/ |
README | 2011-02-22 | drull | [r9] changed readme file and example.config |
dlight.cpp | 2011-02-24 | drull | [r15] |
dlight.h | 2011-02-24 | drull | [r14] added functions for checking state and reload. |
example.config | 2011-02-22 | drull | [r9] changed readme file and example.config |
---------- Compiling ---------- You need libcv and libhighgui development files to compile dlight. After you install them just type "make && sudo make install". ---------- Using ---------- First of all run dlight in debug mode to calibrate it: $ dlight --debug Look at average brightness and decide which commands will be executed at each level. After that you need to edit your config file: $ vim ~/.config/dlight/dlight.conf String '40:80:notify-send -t 1 "40-80"' means that when average brightness is between 40 and 80 command sh -c 'notify-send -t 1 "40-80"' will be executed.