3 ms·
It would be neat if you could use the MacBook light sensor that turns on the keyboard lights to trigger switching terminal themes
by hallowtech 15y ago
It would be neat if you could use the MacBook light sensor that turns on the keyboard lights to trigger switching terminal themes
- sorbus 15y agoThere'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/ http://projects.formatlos.de/ambientlightsensor/
- tobylane 15y agoHow 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.
- adsr 15y agoI don't think that would be a problem, if that was the case, the sensor would not work for it's original purpose either.