Herpes only transmits by direct, unclothed skin to skin contact, like kissing, oral to genital (oral sex), genital to genital or genital to anal contact.
It doesn't transmit by casual contact like hand touches, shaking hands, clothing, etc. Unless you have sexual contact with someone, you aren't going to get herpes from someone.
https://
www.medhelp.org/std/articles/How-Do-You-Get-Genital-Herpes/2582