thagrol wrote: ↑Sat Aug 08, 2020 5:35 pm
Not directly.
You can write a program that waits for a button press then runs your command but there are a bunch of things you need to take into consideration. Not least of which are:
- Whether your command needs to output something
- Whether it needs input from the user
- How you're going to start this program and when
- ...
Thank you for giving me an answer, it just needs to activate bluetooth by running sudo bluetoothctl. It's a bluetooth speaker project. Bluetooth doesn't automatically power on during boot for some reason.