diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-02 13:28:29 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-02 13:28:29 +0200 |
| commit | 402fbef0cd555a8c3288698b0231f22147f57880 (patch) | |
| tree | 25c6333606110b6499f24849707f36bb5377d7ca /rc.book-reader | |
| parent | c5a0d1ca39a0ae61e03b0f38a30579b811b4b858 (diff) | |
| download | book-reader-master.tar.gz book-reader-master.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'rc.book-reader')
| -rwxr-xr-x | rc.book-reader | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
