Anyone ever rigged up a 2 step switch to run off your brake pedal?

Anybody ever trying a prox switch instead of a mechanical micro switch?