When a Terminal window is in the foreground and has an open ssh session --> amber
When Firefox in foreground, displaying news.ycombinator.com --> green.
Never automatic red, though: I would want to conserve its signaling value, so that it would always mean, "if you talk to me right now you are going to mess up a thought structure that was difficult to build".
[edit:
Hm, a little bluetooth-enabled one of these actually would be a pretty cool thinkgeek product.
-- In AppleScript while I wait for tea to steep...
if application "Terminal" is frontmost then
tell application "Terminal"
get name of first item of windows of it
if result contains "ssh" then
set red to false
set yellow to true
set green to false
end if
end tell
end if
-- or a one-liner...
if application "Terminal" is frontmost then tell application "Terminal" to ¬
if (name of first item of windows of it contains "ssh") then set stoplight to "yellow"
When a Terminal window is in the foreground and has an open ssh session --> amber
When Firefox in foreground, displaying news.ycombinator.com --> green.
Never automatic red, though: I would want to conserve its signaling value, so that it would always mean, "if you talk to me right now you are going to mess up a thought structure that was difficult to build".
[edit:
Hm, a little bluetooth-enabled one of these actually would be a pretty cool thinkgeek product.
]