A simple, effective, way to create a remote control for Moode is to repurpose a "wireless USB keypad".
Parts list Instructions
Parts list Instructions
- insert USB dongle from keypad
- modify /etc/triggerhappy/triggers.d/media.conf with the content below
- enable, and restart triggerhappy:
systemctl enable triggerhappy
systemctl restart triggerhappy
Code:
#/etc/triggerhappy/triggers.d/media.conf
KEY_KP0 0 mpc toggle
KEY_KPENTER 0 mpc next
KEY_KPPLUS 0 /var/www/vol.sh -up 5
KEY_KPMINUS 0 /var/www/vol.sh -dn 5
KEY_KP8 0 /var/www/vol.sh -up 5
KEY_KP6 0 mpc next
KEY_KP5 0 mpc pause
KEY_KP2 0 /var/www/vol.sh -dn 5
KEY_KP4 0 mpc prev