News for hackers. Stuff that matters.
Re:OS X Day and Night Terminals by ammmir on Sunday April 24, 2011 @03:49PM (#2479477)
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 by pavel_lishin on Sunday April 24, 2011 @06:59PM (#2479844)
I used it for awhile, but found the transition to be really jarring - it happened over a period of ten seconds.
Re:OS X Day and Night Terminals by pvilchez on Sunday April 24, 2011 @07:12PM (#2479861)
You can set it to transition over an hour, so it's a lot more subtle.
Re:OS X Day and Night Terminals by bodhi on Sunday April 24, 2011 @09:33PM (#2480109)
f.lux is great when it works, but if you plug into an external monitor at all, it seems to stop working automatically. I'd go three days and suddenly realise that I'm staring at a very blue screen at 11pm. This is on a Mac, it might be fine on other platforms.
Re:OS X Day and Night Terminals by veidr on Sunday April 24, 2011 @09:58PM (#2480143)
As another anecdotal data point, I have had f.lux working fine for months with 3 monitors on my Mac Pro (running the latest version of Mac OS X).
Re:OS X Day and Night Terminals by bodhi on Sunday April 24, 2011 @10:29PM (#2480208)
Good to know. I only have problems when switching between internal and external on an MBP.
Re:OS X Day and Night Terminals by joeminkie on Monday April 25, 2011 @12:39PM (#2481877)
I've have similar issues when switching back and forth to an external monitor. After switching though I just quit and restart f.lux and it looks fine again.
Re:OS X Day and Night Terminals by pluies on Sunday April 24, 2011 @04:30PM (#2479556)
What about Nocturne (from the Quicksilver guys: http://www.blacktree.com/ )?

Or even simpler, ctrl-alt-cmd-8?

Re:OS X Day and Night Terminals by whimsy on Sunday April 24, 2011 @07:01PM (#2479846)
You just blew my mind. Thanks for that second tip.
Re:OS X Day and Night Terminals by pyre on Sunday April 24, 2011 @08:06PM (#2479945)
Compiz has a similar feature on Linux, though I think it's not bound to any key combo by default.
Re:OS X Day and Night Terminals by enedi on Sunday April 24, 2011 @10:51PM (#2480247)
If I recall correctly, it's Super-M for inverting the screen and Super-N for inverting an individual window.
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.
Re:OS X Day and Night Terminals by tobylane on Sunday April 24, 2011 @04:23PM (#2479543)
1. Needs to be automated (look up sunset time like Instapaper) 2. Needs to be part of every browser (for the blank page).
Re:OS X Day and Night Terminals by tedkalaw on Sunday April 24, 2011 @06:35PM (#2479799)
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.