07-11-2023, 11:02 AM
We ship a default drop file for triggerhappy that uses vol.sh. I just ran a quick test with a USB volume control and no issues.
Keep in mind that any userid can be created during image prep and so the userid "pi" cannot be assumed.There are no dependencies on the user "pi" in the codebase.
Code:
pi@moode:~ $ cat /etc/triggerhappy/triggers.d/media.conf
KEY_VOLUMEUP 1 /var/www/vol.sh -up 1
KEY_VOLUMEDOWN 1 /var/www/vol.sh -dn 1
KEY_MUTE 1 /var/www/vol.sh -mute
Keep in mind that any userid can be created during image prep and so the userid "pi" cannot be assumed.There are no dependencies on the user "pi" in the codebase.