If you want to use the Pi Supply switch (on / soft off / hard off) with the Raspberry Pi and Kali, follow the next steps.
sudo apt-get install python-pip curl
sudo pip install RPi.GPIO
wget https://pisupp.ly/piswitchcode ./piswitchcode