flux and hue

[f.lux](www.justgetflux.com) is pretty awesome. Now that my room is lit by hue, I wanted a way to make my room colour temperature match my screen. This requires a few ingredients:

With all that put together, the following bash monster asks redshift what colour temperature it should be right now given the current location, then looks that up in the colormapping file to get the hex color, and sends that to the hue. Run this every minute or so and you’ll get a nice fade.

redshift -l corelocation -t 5500:1900 -p | grep temp | cut -d: -f2 | xargs echo | grep -f /dev/stdin ~/dotfiles/scripts/colormapping | cut -d" " -f2 | tr -d "#" | xargs hue lights all 
 
7
Kudos
 
7
Kudos

Now read this

zotero + emacs + latex = awesome

As a PhD student, I have to reference a lot of stuff, which I do with Zotero. It struck me a while ago that it would be nice if this integrated with my LaTeX editor of choice, and so I spent a morning doing just that. Now, I can add... Continue →