ActivityWatch / aw-watcher-afk

Watches keyboard and mouse activity to determine if you are AFK or not (for use with ActivityWatch)
Mozilla Public License 2.0
47 stars 31 forks source link

Replace pyuserinput with pynput #47

Closed ErikBjare closed 3 years ago

ErikBjare commented 3 years ago

PyUserInput is unmaintained and depends on pyHook/pyWinHook which are messy to install.

pynput instead relies on ctypes in the stdlib to accomplish the same task: https://github.com/moses-palmer/pynput

This could help with fixing the issues in https://github.com/ActivityWatch/aw-watcher-afk/pull/39, as well as Python 3.9 issues on Windows in https://github.com/ActivityWatch/aw-watcher-input/issues/6.