Provide an option to follow the idle state of the keyboard alone
silviubogan opened this issue · 5 comments
$ xprintidle --keyboard
would show the number of milliseconds since the keyboard was last used.
Is there a X protocol call available to get this information? I am not aware of any such call. The xprintidle program simply query the X server for the provided information. It thus depend on support in the X protocol and server implementation to be able to only query for keyboard idleness.
Why would it be useful to only look for when the keyboard was last used?
I would like to have this feature to be able to see how long ago the keyboard has been used. For my system xprintidle
on its own gives bogus results since I have a sensitive mouse which is registering small movements when a door is opened or a truck passes by outside.
For my system
xprintidle
on its own gives bogus results since I have a sensitive mouse which is registering small movements when a door is opened or a truck passes by outside.
High tech solution: write a uinput filter which monitors/reports only keyboard activity, or perhaps filters out small mouse movements if it has been otherwise inactive for some time. Low tech solution: put your mouse upside-down before leaving the desk. (I've been using the low-tech solution so far. :))
Close as AFAIK this is not possible with the current X.org versions If somebody knows better, please feel free to reopen this issue and provide a PR. Thanks!