Hacker News new | ask | show | jobs
by jawns 2070 days ago
In iTerm 2, I have it set up to play a sound when certain commands finish, but it hadn't occurred to me that having hold music while the job is still processing could be useful.

Yet now that I think about it, there have been times when I've briefly stepped away from my desk and missed the notification sound. This utility would solve that problem!

1 comments

I use the idletime (among other factors) to decide the alarm's duration.

  getidle-darwin () {
      ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print 
  $NF/1000000000; exit}'
  }