animation/position.sh

20 lines
319 B
Bash
Raw Normal View History

2021-08-05 14:56:27 +00:00
#!/bin/bash
2021-09-16 05:26:50 +00:00
XZIG=2.0
X=3.22 #4.2 - XZIG
Y=2.20
2021-08-05 14:56:27 +00:00
2021-09-16 05:21:27 +00:00
if [[ "${1}" == "" ]]; then
echo "Please provide an argument. Either 'set' or 'reset'."
exit 1
fi
2021-08-05 14:56:27 +00:00
if [ "${1}" == "set" ]; then
paxi move $XZIG 0
2021-08-05 14:56:27 +00:00
paxi move 0 $Y
2021-08-10 22:48:02 +00:00
paxi move $X 0
2021-08-10 22:44:13 +00:00
elif [ "${1}" == "reset" ]; then
2021-08-05 14:56:27 +00:00
paxi move -$X 0
paxi move 0 -$Y
paxi move -$XZIG 0
2021-08-05 14:56:27 +00:00
fi