Skip to content

Instantly share code, notes, and snippets.

@vicolachips44
Created March 23, 2015 14:08
Show Gist options
  • Save vicolachips44/a26cb2b241a0a2864775 to your computer and use it in GitHub Desktop.
Save vicolachips44/a26cb2b241a0a2864775 to your computer and use it in GitHub Desktop.
dual screen - non blocking mouse (with <> screen layouts)
#!/bin/sh
LEFT_TRIGGER=1366;
BOTTOM_TRIGGER=768;
while :;
do sleep 0.10;
eval $(xdotool getmouselocation --shell);
#
if [ $X -eq $LEFT_TRIGGER ] && [ $Y -gt $BOTTOM_TRIGGER ]; then
xdotool mousemove 1362 764
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment