1
General / How do I call a bash script from a button press in attract mode
« on: May 24, 2018, 12:53:35 PM »
Hi,
I am a retropie / attract mode noob so sorry in advance if I'm asking basic/stupid questions.
Basically I have two buttons on my arcade that I would like to use to higher and lower the volume.
I have written two bash scripts to do this using amixer but I do not know how to call these scripts from a button press in attract mode.
I've been looking online for this but to no avail, is there any chance somebody could point me in the right direction?
Thanks in advance,
Kevin
FYI: I am using a zero delay encoder to connect the arcade controls up (https://www.amazon.in/Easyget-Joystick-Raspberry-Retropie-Projects/dp/B01C5J5AJO)
I am a retropie / attract mode noob so sorry in advance if I'm asking basic/stupid questions.
Basically I have two buttons on my arcade that I would like to use to higher and lower the volume.
I have written two bash scripts to do this using amixer but I do not know how to call these scripts from a button press in attract mode.
I've been looking online for this but to no avail, is there any chance somebody could point me in the right direction?
Thanks in advance,
Kevin
FYI: I am using a zero delay encoder to connect the arcade controls up (https://www.amazon.in/Easyget-Joystick-Raspberry-Retropie-Projects/dp/B01C5J5AJO)