How can i detect mouse movement in a python script in linux?
I want to then send those events to a handler which will dispatch that where i can process it later.
There is no gui installed if that matters.
You could try reading /dev/input/mice.
How can i simply detect mouse movement in python?