Skip to content
media-key events -> mpd
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Makefile
README.md
evmpd.c

README.md

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
You can’t perform that action at this time.