Working on macOS and Linux, I often forget to use the sudo command to run system tools. If that happens, you can type sudo !! to run the command typed just before using the sudo command. So I created this button to automate that.
The button works as follows:
sudo !! to the computer, which will run the command last typed with elevated permissions.sudo -s which will elevate the shells permissions to root.You need the following additional parts:
The firmware is provided here as hex file, so you can flash it pretty easily to the ProMicro Module. You can find the Git repository for the firmware here, if you would like to build the firmware yourself or change it's functionality.
The module is powered by the USB-C connection. You need to wire the button between GND and GPIO 0.20.
The author marked this model as their own original creation.