Use f.lux App to automatically dim your screen at night
Computer screens, tablets and mobile phones emit full spectrum light around the clock, just like the sun. Exposure to blue light at the wrong time of day can keep you awake later and interfere with the quality of your sleep. f.lux tries to help this by removing blue and green light to help you wind down in the evenings.
It can take a few days to get used to the new colors at night, so we recommend setting the night-time colors in f.lux to whatever feels good to your eyes. After a few days with f.lux, experiment with the settings to warm things up a little more and find which color works best for you. Our default setting of 3400K on Windows removes about 3/4 of the blue and about half of the green light.
Probably my favorite app for mac and windows. It’s a must have if you use your computer late at night.