Skip to content

Instantly share code, notes, and snippets.

@jesg
Last active August 29, 2015 14:05
Show Gist options
  • Save jesg/3c914d740febd69adc1a to your computer and use it in GitHub Desktop.
Save jesg/3c914d740febd69adc1a to your computer and use it in GitHub Desktop.
#!/bin/bash
delay=1
if (( $# == 1 )); then
delay=$1
fi
while true; do
eval $(xdotool getmouselocation --shell 2> /dev/null)
echo "$X $Y"
sleep $delay
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment