Skip to content

Instantly share code, notes, and snippets.

@adrianparvino
Last active July 8, 2018 12:30
Show Gist options
  • Save adrianparvino/5e88d559ed783a9e8c6a8a671774f8f8 to your computer and use it in GitHub Desktop.
Save adrianparvino/5e88d559ed783a9e8c6a8a671774f8f8 to your computer and use it in GitHub Desktop.
eval $(xdotool getmouselocation --shell)
while :; do
XOLD=$X
YOLD=$Y
eval $(xdotool getmouselocation --shell)
[ $(( XOLD - X )) -gt 10] && echo "Down swipe"
sleep 0.1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment