News for hackers. Stuff that matters.
Re:OS X Day and Night Terminals by hallowtech on Sunday April 24, 2011 @04:03PM (#2479500)
It would be neat if you could use the MacBook light sensor that turns on the keyboard lights to trigger switching terminal themes
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.

[1] http://projects.formatlos.de/ambientlightsensor/

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.
Re:OS X Day and Night Terminals by adsr on Sunday April 24, 2011 @06:12PM (#2479758)
I don't think that would be a problem, if that was the case, the sensor would not work for it's original purpose either.