aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2025-12-10 09:24:57 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2025-12-10 09:24:57 +0200
commitc8102fdbf4f20667014f3b05bd46b16f73473c9b (patch)
tree86bd1846eff16e7a0b4cd22b9c6eccdc7817e7a2 /home
parent78af4cdb070f9ec23399e48e4c6f1aa58beddd74 (diff)
downloadnixos-c8102fdbf4f20667014f3b05bd46b16f73473c9b.tar.zst
Remove mobi
Diffstat (limited to 'home')
-rw-r--r--home/zaread.nix15
1 files changed, 0 insertions, 15 deletions
diff --git a/home/zaread.nix b/home/zaread.nix
index 255624e..1ae8f84 100644
--- a/home/zaread.nix
+++ b/home/zaread.nix
@@ -10,13 +10,11 @@ let
# Default reader, i.e. command, which script uses to open pdf, epub and converted files
READER="${pkgs.zathura}/bin/zathura"
# Default converters, i.e. commands, which script uses to convert files to pdf
- MOBI_CMD="${pkgs.calibre}/bin/ebook-convert"
OFFICE_CMD="${pkgs.libreoffice-fresh}/bin/soffice"
MD_CMD="${pkgs.md2pdf or pkgs.pandoc}/bin/${if pkgs ? md2pdf then "md2pdf" else "pandoc"}"
TYPST_CMD="${pkgs.typst}/bin/typst"
TYPST_ARG="compile" # Can be changed to "watch"
MD_ARG=""
- MOBI_ARG=""
OFFICE_ARG="--headless"
# If you want to use other commands set these vars in $ZA_CONFIG. Some cli
# arguments are hardcoded so some commands won't work. Check that first.
@@ -119,16 +117,6 @@ let
# opendocument) we convert it using $OFFICE_CMD.
file_converter="$OFFICE_CMD"
;;
- "application/octet-stream" | \
- "application/x-mobipocket-ebook")
-
- case "$file" in
- *.mobi)
- # If the file is a mobi ebook we convert it using $MOBI_CMD.
- file_converter="$MOBI_CMD"
- ;;
- esac
- ;;
esac
fi
@@ -181,9 +169,6 @@ let
esac
mv "$ZA_CACHE_DIR/$tmpfile" "$ZA_CACHE_DIR/$pdffile"
;;
- "$MOBI_CMD")
- eval "$MOBI_CMD" "$MOBI_ARG" \""$directory/$file"\" \""$ZA_CACHE_DIR/$pdffile"\"
- ;;
"$MD_CMD")
if [ "$MD_CMD" = "${pkgs.pandoc}/bin/pandoc" ]; then
eval "$MD_CMD" "$MD_ARG" \""$directory/$file"\" -o \""$ZA_CACHE_DIR/$pdffile"\"