Live data from Hacker News

OS X Day and Night Terminals

tech.zpoley.net

1–10 of 20 posts

Re: OS X Day and Night Terminals

#2
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.

[1] http://stereopsis.com/flux/

Re: OS X Day and Night Terminals

#6

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/

Re: OS X Day and Night Terminals

#8

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

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

#9
post #8

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

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.

Re: OS X Day and Night Terminals

#10
This is interesting. I've come to love Solarized, and switch between the two depending on day and night.

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.

Post reply on HN