triggerhappy conf:
- edit file
- run these commands
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