From a92d742d86b6e37f1e4c6284b8d4fb06763779b8 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Fri, 28 Aug 2020 21:18:45 -0400 Subject: [PATCH] Cleanup slideshow to match 20200828-4 release of pf-ui --- docs/slideshow.md | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) 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 ```