get coordinates of cursor mouse code example Example: get mouse coordinates # Real time mouse position. watch -t -n 0.0001 xdotool getmouselocation