f.lux: stop your computer monitor keeping you awake at night!

f.lux makes the colour of your computer's display adapt to the time of day, warm at night and like sunlight during the day.
f.lux makes the colour of your computer’s display adapt to the time of day, warm at night and like sunlight during the day.

f.lux is a genius piece of software (available for Windows, Mac OS X, iOS, and Linux) that I’ve been using for a few months now, that has genuinely helped me get to sleep quicker at night.

What it does

It does one job, and it does it brilliantly: f.lux adjusts your computer display according to the time of day.

Generally monitors are set very bright with a blue-y colour temperature, that makes them look great during the day. As the f.lux website puts it:

During the day, computer screens look good—they’re designed to look like the sun. But, at 9PM, 10PM, or 3AM, you probably shouldn’t be looking at the sun.

f.lux fixes that. Once you’ve told the program where in the world you live (so that it can work out when the sun will rise and set) and what kind of lighting you have it gets to work.

For me, the application runs when Windows starts, and I quite enjoy watching my monitor at sunset slowly change as f.lux kicks in; I’ve set mine to fast transition (over 20 seconds).

Flux settings: adjust your lighting, set your location, and transition speed.
Settings in f.lux are very straight-forward.

When the sun sets f.lux adjusts your monitor to look like your indoor lights (for me that means that that whites take on a warmer hue similar to the colour of paper the Financial Times use). And then when the sun rises again, the blues return and it looks like sunlight once again.

Effect on sleep

I noticed a while ago that if I had been using my computer a lot in the evening it was taking me longer to get to sleep.

It turns out that blue light affects sleep patterns and as monitors are back-lit—effectively firing a lot of blue light straight at you—you end up with a lot of exposure to excessive light at night.

A couple of hours looking at a tablet or PC screen in the evening can knock off your sleep by about an hour, researchers have found.

The f.lux developers have taken this into account and so “f.lux adjusts colours in a way that greatly reduces the stimulating effects of blue light at night.”

I have to admit that I was very sceptical at first, and the first time I tried it I hated it. Everything went slightly peachy. But I stuck with it and within a couple of days I was a convert.

And while I used to lie awake in bed for half an hour or more, since using f.lux on my Windows 8.1 PC I now drop off to sleep within minutes.

Conclusion

If you do a lot of work on your computer or iOS device after sunset then I thoroughly recommend f.lux.

Download f.lux today. (Windows, Mac, Linux, or iOS)

Matching Google Chrome’s developer tools theme to your text editor theme

Sublime Text 2
Sublime Text 2

My main coding text editor is the excellent Sublime Text 2, my favourite theme is called Tomorrow-Night by Chris Kempson, and my go-to browser is Google Chrome.

Being involved in web design I use the Chrome web developer tools all the time for debugging JavaScript, identifying HTML classes and tweaking CSS. It looks like this:

Google Chrome developer tools
Google Chrome developer tools

But as you can see from the screenshot above, the default view is rather dull: white background, uninspiring syntax highlighting. It’s a shame that you can’t match the Chrome developer tools code panel with my text editor of choice.

User StyleSheets

Well, it turns out you can! Chrome provides a “User StyleSheets” directory into what you can drop a Custom.css file.

Windows
C:\Users\%username%\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\
Mac
~/Library/Application Support/Google/Chrome/Default/User StyleSheets/
Ubuntu
~/.config/chromium/Default/User StyleSheets/

A number of people have also done the hard work for us and made available ready-to-use CSS files for various themes. These are my two favourite dark themes:

  • Tomorrow
  • Monokai (UPDATED: This version works better when editing code in the Elements tab.)

Having saved the code to your Custom.css file and saved it, Chrome updates immediately:

Google Chrome developer tools with Tomorrow theme
Google Chrome developer tools with Tomorrow theme

Woohoo! I’ve just installed Ubuntu

I’ve just updated the previous post, but I’ll say it again:

Woohoo! I’ve just successfully installed Ubuntu 6.06 LTS.

Here’s how:

  1. Updated the BIOS to the latest version (08 August 2003)
  2. Ran the Live CD
  3. Used GParted to manually delete the current partitions
  4. Ran the Ubuntu installer
  5. Er…
  6. That’s it!

It’s now installing 186 updates … Woohoo!

Now … what Microsoft software is available for it? I much prefer Microsoft software to any of that homemade stuff. They’re a proper company and everything.

😉

p.s. I’m only teasing. I love Open Source software.