Skip to content
/ blux Public

Adjusts display colour temperature depending on time of day

Notifications You must be signed in to change notification settings

benrwb/blux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

b.lux

b.lux is a very basic Windows program which changes the colour temperature of the display.

It is inspired by the fantasic f.lux, with a couple of differences:

First, unlike f.lux, the colour temperature changes are based on the time of day rather than the time of sunset. It may be dark outside at 4pm in winter, but I won't be going to bed until much later, so I don't want my display to turn orange in the mid-afternoon!

Secondly, the rate of colour temperature change is very gradual, taking place over a period of several hours. The theory is, the less perceptable the change, the greater likelihood of the user allowing it to take place (not closing the program or choosing "disable for an hour" etc).

There is a schedule to set how the colour temperature should change during the day. By default, daytime hours are 6am - 6pm:

  • 6am - 6pm: Default colour temperature of 6500K
  • 6pm - 9pm: Colour temperature will gradually change to 3400K
  • 9pm - 11pm: Colour temperature will gradually change to 1900K

This can be changed by editing the textbox and clicking 'Program'. The default program can be restored by clicking 'Reset'.

The UI also allows for brightness adjustment. This can be useful on desktop PCs, which unlike laptops don't have hotkeys to control brightness.

Screenshot

Note that by default, Windows doesn't allow colour temperatures lower than 3400K. Lower colour temperatures can be unlocked by making the following change to the registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ICM]
"GdiIcmGammaRange"=dword:00000100

(See http://jonls.dk/2010/09/windows-gamma-adjustments/)

Alternatively, if f.lux is installed, then the same thing can be accomplished by using the "Expand range" feature (or by running flux.exe /unlockwingamma)

Starting automatically

To start the program automatically when Windows starts:

  1. Create a shortcut to the program

  2. Then copy it to to startup folder:

    %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
                     or %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup

About

Adjusts display colour temperature depending on time of day

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages