Cleanup UI docs now that pf-ui includes ALL of fim management

This commit is contained in:
KemoNine 2020-09-05 02:13:25 -04:00
parent f577430bd8
commit 5adbd7bee9

View file

@ -20,6 +20,8 @@ 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 <<EOF
#!/bin/bash
/usr/bin/chvt 1
/usr/bin/tput -T screen civis > /dev/tty1
/usr/bin/stty -echo
/usr/local/bin/pf-ui
EOF
@ -48,7 +50,7 @@ useradd -m -G video -s /usr/sbin/nologin fim
apt install acl
setfacl -m "u:fim:rwX" /tank/pictures
setfacl -dm "u:fim:rwX" /tank/pictures
apt install fim imagemagick ttf-dejavu
apt install fim imagemagick
cat > /usr/local/etc/fimrc <<EOF
# Ensure simages are auto-centered on the screen
_want_autocenter=1;
@ -64,29 +66,10 @@ _display_status_bar=0;
_display_status_fmt=0;
EOF
# Setup slideshow script stuff
cat > /etc/default/fim_albums <<EOF
/tank/pictures
EOF
cat > /usr/local/bin/pf-fim.sh <<EOF
#!/bin/bash
/usr/bin/chvt 1
/usr/bin/tput -T screen civis > /dev/tty1
#exec </dev/tty1 >/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 <<EOF
#!/bin/bash
/usr/bin/chvt 1
/usr/bin/tput -T screen civis > /dev/tty1
EOF
chmod a+x /usr/local/bin/no-cursor-tty1.sh