3 ms·
I use the idletime (among other factors) to decide the alarm's duration. getidle-darwin () { ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print $NF/10
by Siira 6y 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}'
}