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
[ Parent
| on HN ]
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.
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.