View Single Post
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#5
Headphone events are reported on d-bus, so you can use dbus-scripts to run a script whenever headphones are inserted or removed. Such a script can send a pause (or unpause) command to media player when headphones are removed (or inserted).
 

The Following User Says Thank You to Matan For This Useful Post: