hawx/evmpd

语言: C

git: https://github.com/hawx/evmpd

媒体密钥事件 - > mpd
media-key events -> mpd
README.md (中文)

evmpd

根据媒体键事件向mpd发送命令。

$ make
$ sudo ./evmpd localhost 6600 \
   /dev/input/by-id/usb-xxxx_xxxx-event-kbd \
   'shutdown -h now'
...

要求:

  • libmpdclient
  • libevdev

支持:

  • F4 = HALT_COMMAND
  • 播放/暂停
  • 停止
  • 以前
  • 下一个
  • 增加音量(增加5%)
  • 降低音量(降低5%)

格式化

使用GNU缩进进行代码格式化:

$ indent -kr -ci2 -cli2 -i2 -l80 -nut

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_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