News for hackers. Stuff that matters.

F.lux in 10 lines of code

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 points | on HN )
Re:F.lux in 10 lines of code by blumomo on Monday December 26, 2016 @04:07AM (#13257580)
It's actually much more than 10 lines. It's unreadable in its current state.
Re:F.lux in 10 lines of code by kseistrup on Monday December 26, 2016 @05:48AM (#13257795)
Try e.g.:

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