Re:OS X Day and Night Terminals
by ammmir on Sunday April 24, 2011 @03:49PM
(#2479477)
i've recently started using f.lux [1], which adjusts the color temperature of the screen based on the time. after a night of coding, i've noticed i've been able to fall asleep more quickly, probably since my eyes adjust to the ambient warm light in the room while coding.
Re:OS X Day and Night Terminals
by bodhi on Sunday April 24, 2011 @09:33PM
(#2480109)
f.lux is great when it works, but if you plug into an external monitor at all, it seems to stop working automatically. I'd go three days and suddenly realise that I'm staring at a very blue screen at 11pm. This is on a Mac, it might be fine on other platforms.
Re:OS X Day and Night Terminals
by joeminkie on Monday April 25, 2011 @12:39PM
(#2481877)
I've have similar issues when switching back and forth to an external monitor. After switching though I just quit and restart f.lux and it looks fine again.
Re:OS X Day and Night Terminals
by sorbus on Sunday April 24, 2011 @04:38PM
(#2479573)
There's a processing library for getting information from it[1], so there's certainly the possibility of using the sensor to automatically adjust the theme. I would try to write something to do that myself, but I don't have a Mac.
Re:OS X Day and Night Terminals
by tobylane on Sunday April 24, 2011 @05:57PM
(#2479718)
How would that work? Surely the brightness of the screen (which I believe the sensor can see as it is at the top of the keyboard) is more than the sunlight. Maybe using the gyroscope/anti-drop, someone made a app-switcher that worked that way.
In iTerm2 I mapped the lighter theme to CTRL-CMD-L and the dark theme to CTRL-CMD-D. I am sure there is a quick way to change the default theme as well, though I haven't really tried too hard.
[1] http://stereopsis.com/flux/
Or even simpler, ctrl-alt-cmd-8?
[1] http://projects.formatlos.de/ambientlightsensor/
http://ethanschoonover.com/solarized
In iTerm2 I mapped the lighter theme to CTRL-CMD-L and the dark theme to CTRL-CMD-D. I am sure there is a quick way to change the default theme as well, though I haven't really tried too hard.