# Slideshow The below commands will setup ```fim``` as a slideshow on your display. ## Important Notes * ```fim``` will crash if there are no photos for it to use as a slideshow * You will likely want to tweak the ```fim``` command invocation below. These are great settings as a starting point but you'll probably want to make adjustments for your use case. * This setup uses ```incron``` to restart ```fim``` when photos are deleted from the pictures folder. Without this piece ```fim``` will crash if a picture is removed from the pictures directory prior to ```fim``` rescaning the pictures directory. ## Setup ``` sh # Setup UI binary DL_URL=$(curl https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases | jq -r '.[0].assets[] | select(.name == "gui") | .browser_download_url') wget $DL_URL -O /usr/local/bin/pf-ui chmod a+x /usr/local/bin/pf-ui # Setup wrapper script for pf-ui so no chracters are echo'd to the tty cat > /usr/local/bin/pf-ui.sh < /dev/tty1 /usr/bin/stty -echo /usr/local/bin/pf-ui EOF chmod a+x /usr/local/bin/pf-ui.sh # Setup systemd service for UI cat > /etc/systemd/system/pf-ui.service < /usr/local/etc/fimrc < /usr/local/bin/no-cursor-tty1.sh < /dev/tty1 EOF chmod a+x /usr/local/bin/no-cursor-tty1.sh cat > /etc/systemd/system/no-cursor-tty1.service < /etc/systemd/system/inotify-pictures.service <