[ -f "$1" ] && { echo "Error: file '${1}' already exists!" 1>&2; exit 2; }
FILENAME="$1"
+shift
-if [ "x" = "x$2" ];
+if [ "x" = "x$1" ];
then
SHADOW_SIZE=0
SHADOW_X_OFFSET=0
XIMAGESRC_ARGS="startx=$(($X + $SHADOW_SIZE - $SHADOW_X_OFFSET)) starty=$(($Y + $SHADOW_SIZE - $SHADOW_Y_OFFSET)) endx=$(($X + $WIDTH - 1 - $SHADOW_SIZE - $SHADOW_X_OFFSET)) endy=$(($Y + $HEIGHT - 1 - $SHADOW_SIZE - $SHADOW_Y_OFFSET))"
else
- XIMAGESRC_ARGS="$2"
+ XIMAGESRC_ARGS="$@"
fi
if [ $SINGLE_SHOT -eq 1 ];