Like this?
Or this? It’s a SPDT switch, so this one probably won’t have any hum since it shorts out the two jack prongs. According to this site (Electronics Club - Switches - SPST, SPDT, DPST, DPDT, reversing, ON-ON, ON-OFF-ON, momentary ON-(ON), push, rotary, multiway, tilt, reed) the switch...