4 ms·
Bonus if you write some code to detect your activity (based on active application or typing/clicking patterns or who knows what) and then communicate via usb to
by Xichekolas 18y ago
Bonus if you write some code to detect your activity (based on active application or typing/clicking patterns or who knows what) and then communicate via usb to your stoplight.
At that point, you could probably sell the thing on thinkgeek.com and watch cubicles everywhere fill up with activity indicators. Of course, there would have to be manual override, so cube workers could set it to red all day when they don't feel like doing anything.
- davi 18y agoNice. Maybe let user build rules like: 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. ]
- GHFigs 18y ago-- 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"
- jrockway 18y agoThis is even easier with a window manager like Xmonad, since you can configure it to "log" state changes. No polling necessary.
- deleted 18y ago[deleted]