dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit bba7c0f4a5b919a249c99d4179f1c5f5f43a1416
parent 1379747a1756f613584ab804c3332e1e42d245bb
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Fri, 29 May 2020 16:03:52 -0400

Merge branch 'master' of github.com:LukeSmithxyz/voidrice

Diffstat:
M.config/lf/lfrc | 3+++
M.local/bin/booksplit | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.config/lf/lfrc b/.config/lf/lfrc @@ -22,6 +22,9 @@ cmd open ${{ audio/*) mpv --audio-display=no $f ;; video/*) setsid mpv $f -quiet >/dev/null 2>&1 & ;; application/pdf) setsid zathura $fx >/dev/null 2>&1 & ;; + application/epub+zip) setsid zathura $fx >/dev/null 2>&1 & ;; + application/vnd.comicbook+zip) setsid zathura $fx >/dev/null 2>&1 & ;; + application/vnd.comicbook-rar) setsid zathura $fx >/dev/null 2>&1 & ;; *) for f in $fx; do setsid $OPENER $f >/dev/null 2>&1 & done;; esac }} diff --git a/.local/bin/booksplit b/.local/bin/booksplit @@ -39,6 +39,6 @@ do done < "$2" # The last track must be done outside the loop. echo "From $start to the end: $title" -file="$escbook/$track-$esctitle.$ext" +file="$escbook/$(printf "%.2d" "$track")-$esctitle.$ext" echo "Splitting \"$title\"..." && ffmpeg -nostdin -y -loglevel -8 -i "$inputaudio" -ss "$start" -vn "$file" && echo "Tagging \"$title\"..." && tag -a "$author" -A "$booktitle" -t "$title" -n "$track" -N "$total" -d "$year" "$file"