I'm trying to create a bash script that records the location of the mouse every 5 milliseconds. I also want to record the timestamps and locations of mouse-clicks.
Recording the mouse location has been easy with xdotool getmouselocation
. I've been able to record mouse clicks using some of the suggestions here: https://unix.stackexchange.com/questions/106736/detect-if-mouse-button-is-pressed-then-invoke-a-script-or-command
However, I've not been able to combine the two.
Is there any way to accomplish this? Thank you in advance!