animation/position.sh

20 lines
318 B
Bash

#!/bin/bash
XZIG=1.0
X=3.2 #4.2 - XZIG
Y=1.25
if [[ "${1}" == "" ]]; then
echo "Please provide an argument. Either 'set' or 'reset'."
exit 1
fi
if [ "${1}" == "set" ]; then
paxi move $XZIG 0
paxi move 0 $Y
paxi move $X 0
elif [ "${1}" == "reset" ]; then
paxi move -$X 0
paxi move 0 -$Y
paxi move -$XZIG 0
fi