Skip to content

Instantly share code, notes, and snippets.

"""
count mouse movements
first run `xinput -list` and note id of your mouse
then run `python mouse.py {id}` and
keep it running till you want to count mouse movements
it will update a file in working directory with current stats
every 100 movements. this file will be named as starting time
of the script.
"""
import sys