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 | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
openrc | %!s(int64=7) %!d(string=hai) anos | |
.gitignore | %!s(int64=5) %!d(string=hai) anos | |
Makefile | %!s(int64=7) %!d(string=hai) anos | |
README.md | %!s(int64=7) %!d(string=hai) anos | |
mpcinputd.c | %!s(int64=5) %!d(string=hai) anos |
Daemon reading from a named input device and converting buttons pressed on a remote control to mpc commands.
The daemon is made to fit my own setup, it might become more customizable in the future.
Compile the daemon:
make
Installation, default PREFIX is /usr/local/
. The daemon will be installed in ${PREFIX}/sbin/mpcinputd
:
make install
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