F.lux in 10 lines of code

3 points by danielng01 ↗ HN
So I decided to try in how many lines I can make blue light and brightness reduction software for Linux and this is the result.

10 lines and works on all linux distributions

See the source code here

https://github.com/danielng01/iris-floss

More about Iris here

http://iristech.co

:)

2 comments

[ 3.9 ms ] story [ 19.8 ms ] thread
It's actually much more than 10 lines. It's unreadable in its current state.
Try e.g.:

    $ curl -s https://raw.githubusercontent.com/danielng01/iris-floss/master/iris-floss.c \
      | indent -gnu \
      | wc -l
    78
    $