Headphone insertion events should change the PulseAudio port
As Kyle noted:
This is a script I ended up writing so I could ... as well as set it as the default audio sink, because inserting the headphones currently does not trigger this
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
As Kyle noted:
This is a script I ended up writing so I could ... as well as set it as the default audio sink, because inserting the headphones currently does not trigger this