I'm trying to write my first script (routine? program? I'm new to all this). A simple thing where if I triple-tap the touchscreen (preferably with some degree of customization of the interval between presses) the Pi:
- minimizes all windows - I have wmctrl installed so that should be a breeze
- mutes all sound - I can make a simple bash file with amixer commands
- blanks the screen - I have xscreensaver installed so I can probably piggyback off this? I'm happy just activating the screensaver function instead of blanking.
I'm sure there are enough beginner guides out there to get me started but I'm struggling on the input part (the triple tap). Does anyone know where I should begin?