headphones-plug-controller
headphones-plug-controller - f1u77y/headphones-plug-detector implementation in Vala
Pauses playback for mpris2 compatible media players when the headphones jack unplugs and resumes playback when it is plugged back in.
Building and Installation
git clone https://gitlab.com/nvlgit/headphones-plug-controller.git && cd headphones-plug-controller
meson builddir --prefix=/usr && cd builddir
ninja
su -c 'ninja install'
For rpmbuild: headphones-plug-controller.spec
Run
$ systemctl enable headphones-plug-controller.service --user
$ systemctl start headphones-plug-controller.service --user