From 402fbef0cd555a8c3288698b0231f22147f57880 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 2 Oct 2026 13:28:29 +0200 Subject: Turn the reader into a series library with a bottom status bar LIBRARY is now a folder with one subfolder per series; every image folder inside a series is a book. The library screen shows a grid of series that drills into multi-book series, with search (/) and Esc to go back. Folders are scanned in parallel. Book ids are paths relative to the library, so reading progress survives moving the library. The server links LIBRARY as "library/". The floating HUD becomes a fixed full-width bottom bar: library button and "series / book" on the left, progress in the middle, page numbers and fit/fullscreen on the right. Pages are sized to leave it clear. Co-Authored-By: Claude Opus 5.5 --- rc.book-reader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.book-reader') diff --git a/rc.book-reader b/rc.book-reader index 5ba30a3..aed5a34 100755 --- a/rc.book-reader +++ b/rc.book-reader @@ -4,7 +4,7 @@ # SPDX-License-Identifier: GPL-2.0-only # # Config (shell syntax): ${XDG_CONFIG_HOME:-~/.config}/book-reader.conf -# LIBRARY=/path/to/collection # required; every folder with images inside is a book +# LIBRARY=/path/to/library # required; one folder per series, every folder with images is a book # PORT=8642 # keep it fixed: reading progress is stored per origin # BIND=127.0.0.1 # READER=/path/to/book-reader/reader.html # needed when this script is copied out of the repo @@ -39,7 +39,7 @@ start() { mkdir -p -m 700 "$RUN" "$RUN/root" find "$RUN/root" -mindepth 1 -maxdepth 1 -type l -delete ln -s "$(readlink -f "$READER")" "$RUN/root/reader.html" - ln -s "$(readlink -f "$LIBRARY")" "$RUN/root/$(basename "$LIBRARY")" + ln -s "$(readlink -f "$LIBRARY")" "$RUN/root/library" setsid python3 -m http.server -b "$BIND" -d "$RUN/root" "$PORT" >"$RUN/log" 2>&1 & echo $! >"$PIDFILE" sleep 0.5 -- cgit v1.2.3