Assigning predefined attributes to infinite and regular lines

Hello all:

 

Is it possible to start infinite lines always blue and 0 weight, and regular lines always white and .5 weight?

 

Thanks