Installing a mute button on picroft?

Has anyone tried to install a mute button on picroft? I’ve thought about connecting a button to GPIO pins or even just wiring the button into the headphone jack so that it just connects/disconnects the speaker. Thoughts?