An enraged York man allegedly fired five shots from a handgun into his home Saturday morning, as his girlfriend, her son and granddaughter slept inside, according to charging documents.

The bullets were fired into the home in the 200 block of West Maple Street around 9 a.m., but no one inside was injured, documents state.

Police tracked down the alleged gunman, Louis Richard Grimes Jr., 49, at his "baby momma's" house in the 700 block of South Pine Street and arrested him.

More:Shot in line of duty, York police officer overcomes severe injury to return to service

Officers later recovered a gun from a safe in the South Pine Street house, which they believe Grimes used, documents state.

Police initially responded to the West Maple Street home at 5 a.m., where they spoke with Grimes' longtime girlfriend, Sapia DeShields, who said an inebriated Grimes woke her up and began "talking crazy," documents state.

"She informed me that Grimes seemed agitated, and was talking angrily about a person he works with, which made no sense to DeShields," police wrote in documents.

Grimes then threatened DeShields' adults sons, Trevon and Jakaii Carter, telling them, "Yous ain't no tough guy." He also began breaking items in the home. Police arrived and arranged for a bleeding Grimes to be taken to York Hospital, according to documents.

Several hours later, DeShields, her 6-year-old granddaughter and Jakaii Carter were awoken by shots fired into the home. Her other son had gone to his girlfriend's house, documents state.

More:Man wanted for shattering display case, stealing Xbox from York County Walmart, police say

Police discovered bullet holes in the glass of the front storm door and several spent shell casings on a nearby sidewalk, documents state.

As police were investigating, Grimes called DeShields, who put the call on speaker so that police could hear. In the call, Grimes said, "I did what I did they had it coming," according to documents.

As police responded to the South Pine Street home, they saw Grimes walking out the front door and arrested him. As of Monday, he remained in York County Prison on $100,000 bail.

More:White-coated woman wanted in Walmart theft, police say

Grimes has a preliminary hearing before District Judge Ronald J. Haskell Jr. on Jan. 25, according to online court dockets.

He faces three counts of aggravated assault and recklessly endangering another person, two counts of criminal mischief, and one count each of illegal possession of a firearm, discharge of a firearm into an occupied structure and terroristic threats.

Contact Ted Czech at 717-771-2033.