Created
January 8, 2017 21:06
-
-
Save pstuifzand/fef7e2814f36a446f8b55354eedd7348 to your computer and use it in GitHub Desktop.
Log mouse position to csv.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true; do | |
xdotool getmouselocation 2>&1 | sed -rn '${s/x:([0-9]+) y:([0-9]+) .*/\1,\2/p}' >> mouselocation.csv | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment