nvlgit / headphones-plug-controller

Pauses playback for mpris2 compatible media players when the headphones jack unplugs and resumes playback when it is plugged back in.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icon headphones-plug-controller

License: MIT

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

About

Pauses playback for mpris2 compatible media players when the headphones jack unplugs and resumes playback when it is plugged back in.

License:Other


Languages

Language:Vala 88.3%Language:Meson 11.7%