Hi Forum!
For my recent project I need to implement a single button selection menu to switch between different states, like a lot of mp3 players used to have. It should work as follows:
-Pressing button -> menu appears which displays current item (= state)
-Pressing button again [multiple times] -> switch to the next [n'th] menu item
-Waiting for a fix amount of time (~ 1 sec)
-Executing a special shell script connected with the menu item
-Menu closes
My trigger is the button of an old gamepad connected via usb and supervised by joyd.
How could this be implemented? Is there even a chance to build a menu like this completely in shellscript (because this is the "language" im used to, i dont know python or C at all....)?
Regards,
thurse