Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


triggerhappy and volume
#2
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.

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.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
triggerhappy and volume - by mezcal - 07-11-2023, 05:32 AM
RE: triggerhappy and volume - by Tim Curtis - 07-11-2023, 11:02 AM
RE: triggerhappy and volume - by mezcal - 07-11-2023, 06:00 PM
RE: triggerhappy and volume - by Tim Curtis - 07-11-2023, 06:12 PM

Forum Jump: