evmpd
Sends commands to mpd based on media-key events.
$ make
$ sudo ./evmpd localhost 6600 \
/dev/input/by-id/usb-xxxx_xxxx-event-kbd \
'shutdown -h now'
...
Requires:
Supports:
F4
= HALT_COMMAND
- Play/Pause
- Stop
- Previous
- Next
- Volume Up (increments by 5%)
- Volume Down (decrements by 5%)
Formatting
Code formatting using GNU indent:
$ indent -kr -ci2 -cli2 -i2 -l80 -nut