12 lines
486 B
Bash
Executable File
12 lines
486 B
Bash
Executable File
#!/bin/bash
|
|
# Mouse on the team desktop (needs tests/add_test_tools.sh), screen pixels:
|
|
# tests/click.sh X Y left click
|
|
# tests/click.sh X Y right right click
|
|
# tests/click.sh X Y double double click
|
|
case "${3:-left}" in
|
|
right) action="click 3" ;;
|
|
double) action="click --repeat 2 --delay 120 1" ;;
|
|
*) action="click 1" ;;
|
|
esac
|
|
exec "$(dirname "$0")/vssh.sh" team "DISPLAY=:0 XAUTHORITY=\$HOME/.Xauthority xdotool mousemove $1 $2 sleep 0.2 $action"
|