https://pimylifeup.com/raspberry-pi-kiosk/
Should work with dietpi just as well…might have to change a few lines of code