From d28134d9205cf88e8785d137da41a55bf7c0ee8d Mon Sep 17 00:00:00 2001 From: KemoNine Date: Fri, 31 Jul 2020 23:56:17 +0000 Subject: [PATCH] Move slideshow setup info from notes to docs --- docs/README.md | 1 + docs/slideshow.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ notes.txt | 33 --------------------------------- 3 files changed, 47 insertions(+), 33 deletions(-) create mode 100644 docs/slideshow.md diff --git a/docs/README.md b/docs/README.md index ff55d08..7d2ddef 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,3 +10,4 @@ This folder contains a bunch of general information on how to get the base of a * [CPU Governor](cpu_governor.md) * [AUR Package Manager (REQUIRED)](aur_package_manager.md) * [Slideshow Prep (REQUIRED)](slideshow_prep.md) +* [Slideshow Setup (REQUIRED)](slideshow.md) diff --git a/docs/slideshow.md b/docs/slideshow.md new file mode 100644 index 0000000..419388b --- /dev/null +++ b/docs/slideshow.md @@ -0,0 +1,46 @@ +# Slideshow + +The below commands will setup ```feh``` as a slideshow on your display. + +## Important Notes + +* ```feh``` will crash if there are no photos for it to use as a slideshow +* You will likely want to tweak the ```feh``` 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 ```feh``` when photos are deleted from the pictures folder. Without this piece ```feh``` will crash if a picture is removed from the pictures directory prior to ```feh``` rescaning the pictures directory. +* We default to ```DejaVuSansMono``` as the font for display of EXIF data and filename. This is an open font and looks great on most displays. Any ```fontconfig``` font can be used in its place. Adjust according to your preferences. + +## Setup + +``` sh + +pacman -S feh imagemagick ttf-dejavu +# reload 86400 is to refresh the list of images daily -- tune for preferred number of seconds +# slideshow-delay is number of seconds (as a float) between images ; tune accordingly +useradd -s /usr/bin/nologin -m feh +chmod a+rx /tank/pictures +pacman -S acl +setfacl -m "u:feh:rX" /tank/pictures +setfacl -dm "u:feh:rX" /tank/pictures +pacman -S incron +cat > /etc/incron.d/feh < /usr/local/bin/feh-slideshow.sh <> /etc/greetd/config.toml < /etc/incron.d/feh < /usr/local/bin/feh-slideshow.sh <> /etc/greetd/config.toml <