Skip to content

Comment on OS X Day and Night Terminals

Comments

It would be neat if you could use the MacBook light sensor that turns on the keyboard lights to trigger switching terminal themes

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/

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.

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.