A man allegedly attacked and injured his neighbours with a tomahawk after a series of "mundane" disputes over noise and street parking, a judge has heard.