diff --git a/docs/slideshow.md b/docs/slideshow.md index f258d51..053eb63 100644 --- a/docs/slideshow.md +++ b/docs/slideshow.md @@ -18,13 +18,21 @@ wget $DL_URL -O /usr/local/bin/pf-ui chmod a+x /usr/local/bin/pf-ui # Setup systemd service for UI -mkdir /etc/systemd/system/getty@tty1.service.d/ -cat > /etc/systemd/system/getty@tty1.service.d/override.conf < /etc/systemd/system/pf-ui.service < /etc/default/fim_albums < /usr/local/bin/pf-fim.sh </dev/tty1 2>/dev/tty1 +/usr/bin/chvt 1 +/usr/bin/tput -T screen civis > /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" \ ---execute-commands 'while(1){display;sleep "300";next;}' \ --autozoom --random \ --cd-and-readdir --recursive \ "\$ALBUM_PATH" EOF chmod a+x /usr/local/bin/pf-fim.sh -cat > /etc/systemd/system/pf-ui.service < /usr/local/bin/no-cursor-tty1.sh < /dev/tty1 @@ -97,6 +95,7 @@ ExecStart=/usr/local/bin/no-cursor-tty1.sh WantedBy=multi-user.target EOF +# Setup watcher for filesystem events DL_URL=$(curl https://git.kemonine.info/api/v1/repos/PiFrame/piframe-go/releases | jq -r '.[0].assets[] | select(.name == "inotify") | .browser_download_url') wget $DL_URL -O /usr/local/bin/pf-inotify chmod a+x /usr/local/bin/pf-inotify @@ -118,8 +117,9 @@ EOF systemctl daemon-reload systemctl enable --now no-cursor-tty1 -systemctl enable getty@tty1.service -systemctl restart getty@tty1.service +systemctl disable getty@tty1.service +systemctl stop getty@tty1.service +systemctl enable --now pf-ui systemctl enable --now inotify-pictures ```