Simple daemon using /dev/input/event* device to spawn mpc commands to control mpd.

Markus Hennecke cdfb68f783 Remove #if 0 code and a no-op 4 ani în urmă
openrc 3c4779256c Initial commit 6 ani în urmă
.gitignore d12fb63d57 Add .gitignore 4 ani în urmă
Makefile 3c4779256c Initial commit 6 ani în urmă
README.md 71c9838e19 Add build instructions 6 ani în urmă
mpcinputd.c cdfb68f783 Remove #if 0 code and a no-op 4 ani în urmă

README.md

mpcinputd

Daemon reading from a named input device and converting buttons pressed on a remote control to mpc commands.

Limitations

The daemon is made to fit my own setup, it might become more customizable in the future.

Build

  • Compile the daemon:

    make
    
  • Installation, default PREFIX is /usr/local/. The daemon will be installed in ${PREFIX}/sbin/mpcinputd:

    make install
    

Automatic start on system start (gentoo)

Assuming openrc:

install -o root -g wheel -m 755 openrc/mpcinputd /etc/init.d/mpcinputd

Add it to the default runlevel:

rc-update add mpcinputd default