From 274c40ce80b2cd9078fb1055c0f862333ae9a396 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 12 Nov 2024 16:11:37 -0800 Subject: [PATCH] :construction: Set up resume read script for mupdf --- scripts/resume_read | 7 +++++++ zshrc.txt | 3 +++ 2 files changed, 10 insertions(+) create mode 100755 scripts/resume_read diff --git a/scripts/resume_read b/scripts/resume_read new file mode 100755 index 00000000..7fb144ea --- /dev/null +++ b/scripts/resume_read @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +leftoff=7 + +# Look for current read in either .bashrc or .zshrc + +gobble mupdf -I -r 204 "${CURRENT_READ}" "${leftoff}" diff --git a/zshrc.txt b/zshrc.txt index 844d33b5..d7d0b278 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -208,3 +208,6 @@ bindkey '^f' fex-widget # bun export BUN_INSTALL="$HOME/.bun" export PATH="$BUN_INSTALL/bin:$PATH" + +# current book being read (used in resume_read script) +export CURRENT_READ=""