This repository contains a script to display lovely slightly-transparent overlays on top of your RetroPie games and emulationstation menus
Like that:
Bluetooth, wifi connected, battery discharging
Bluetooth, wifi disconnected, battery discharging
Bluetooth, wifi disabled, battery charging
CPU throttled due to high temperature
Under-Voltage, Freq-capped due to high temperature, battery critical, shutdown imminent warning - shutting down in 60s
In-game
SSH into your device or access the terminal using F4. We're assuming you already have Internet access configured
mkdir ~/src && cd ~/src
git clone --depth 1 https://github.com/AndrewFromMelbourne/raspidmx.git
cd raspidmx/
make -j4
sudo cp pngview/pngview /usr/local/bin/
cd ~/src
git clone --depth 1 https://github.com/google/material-design-icons.git material-design-icons-master
mkdir ~/scripts && cd ~/scripts
git clone --depth 1 https://github.com/d-rez/gbz_overlay.git
ln -s ~/scripts/gbz_overlay/overlay_icons/ic_battery_alert_red_white_36dp.png ~/src/material-design-icons-master/device/drawable-mdpi/ic_battery_alert_red_white_36dp.png
sudo apt-get update
sudo apt-get install build-essential python3-dev python3-smbus python3-pip
sudo pip3 install adafruit-ads1x15
python3 ~/scripts/gbz_overlay/overlay.py &
You should now see overlay icons
Note: Do not use rc.local, it's deprecated
sudo crontab -e
Then at the bottom of the file, add the line:
@reboot python3 /home/pi/scripts/gbz_overlay/overlay.py
You can use this one-liner instead if you prefer:
(crontab -l ; echo "@reboot python3 /home/pi/scripts/gbz_overlay/overlay.py") | crontab -