# 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 == "ui") | .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 < /etc/systemd/system/pf-ui.service < /usr/local/etc/fimrc < /etc/default/fim_albums < /usr/local/bin/pf-fim.sh < /dev/tty1 #exec /dev/tty1 2>/dev/tty1 #echo 2 > /sys/class/graphics/fbcon/rotate_all ALBUM_PATH=\`cat /etc/default/fim_albums\` /usr/bin/fim --verbose --no-commandline --no-history --etc-fimrc /usr/local/etc/fimrc \ --device /dev/fb0 --vt 1 \ --execute-commands-early "clear" --final-commands "clear" \ --autozoom --random \ --cd-and-readdir --recursive \ "\$ALBUM_PATH" EOF chmod a+x /usr/local/bin/pf-fim.sh # Setup console config stuff cat > /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 <