Cute, but why not just shock yourself instead? Like an anti-barking collar Dimming the glasses doesn't seem very punishing, in fact it might help you sleep.
Instead of shocking people, why not dim some lenses in front of their eyes?
It's probably not easy to get electroshock devices approved for sale. Also, is "punishing" what they are going for? It seems like it's biofeedback, which isn't the same, it stimulates awareness.