Not so easy, but works for me.
ydotool setup
Relative mouse movements (absolute would have been better, but it failed for me)
#!/bin/bash
TOGGLE=$HOME/.toggle
if [ ! -e $TOGGLE ]; then
touch $TOGGLE
ydotool mousemove -- 0 -800
else
rm $TOGGLE
ydotool mousemove -- 0 800
fi