Thirteen agencies in Berks County received a total of $5.4 million in state grants for community safety.