Closed dbrgn closed 6 years ago
It is, unfortunately. The way xidlehook works is that it queries the idle time every once in a while - something we don't want to do too often. So currently it only checks once every minute if the idle time is more than or equal to the specified amount, which it only became at 80s. The notifier is guaranteed to be accurate to the second though, which is why it purposely delayed the timer to 90s, so the notifier got the time it wanted.
Ok. That's fine for me, but should probably be mentioned in the README :slightly_smiling_face:
Timers will now support second precision in https://gitlab.com/jD91mZM2/xidlehook/merge_requests/5 :smile:
For testing, I used this command:
Then I ran
watch -n 1 xidlehook --print
. I could observe that the notifier triggered after about 80s of idle time, and the timer 10 seconds later.Is it expected that the timer is very inaccurate?