Y
Hacker News
new
|
ask
|
show
|
jobs
by
Siira
2070 days ago
I use the idletime (among other factors) to decide the alarm's duration.
getidle-darwin () { ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print $NF/1000000000; exit}' }