Ishna ji I believe spnadmin ji took some liberties about gays in Pinds (villages) being happy as a pig in muck. Almost all gays have been focus of jokes and ridicule but not much violence. Villagers perhaps appreciated gays as there would be less danger for their girls, a concern of family respect and dignity in traditional villages. Furthermore gays were always and almost 100% from non dominant families and lower classes (I know it is against Sikhi but I don't know how to classify it otherwise to describe the situation). Gays were also forced to or choose to act docile in local environments and hence less visibility. The gay characters in Indian cinema were butt of jokes or funnies and filler segments.
Intersex people were quite common in villages as street performers. They will come to a house which had an auspicious occasion (birth of a child, wedding, etc.) and sing/dance provocatively. They will threaten to expose their privates if the home owners wouldn't amply reward them. This was just an empty threat just to get the kids excited and I never saw it materialize even once .
Hope it clarifies.
Sat Sri Akal.
Interestingly we treat Sikandar or Alexander the Great as a God in Punjab and yet he was Gay?
I think your perspective is based on the last 100 years. If you go to pre-British era's homosexuality was not an issue. If it was an issue the Guru's would have condemned it openly.