A defense lawyer says a California man accused of shooting and killing his ex-wife and seven other people at a hair salon has agreed to plead guilty.

Defense lawyer Scott Sanders told an Orange County court on Monday that 44-year-old Scott Dekraai (deh-CRY) would enter the plea.

Authorities say Dekraai shot his ex-wife, a hairdresser at Salon Meritage, before killing the Seal Beach salon's owner and six others in 2011.

He had been locked in a custody dispute over their 8-year-old son before police say he strapped on a bulletproof vest, took three guns and entered the salon.

Dekraai had previously offered to plead guilty in exchange for multiple life sentences but prosecutors refused to drop the death penalty from consideration.