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

ssh tunnels are magical

After getting the Pi connected upstairs, I figured it would be nice to be able to connect to it when I’m out and about. Now, I don’t have a static IP, and don’t really want to open ports to the Internet anyway, but I do have a shell... Continue →