add geometry

This commit is contained in:
Prunebutt 2025-09-22 00:22:42 +02:00
parent d7a3114893
commit 1391b72c26

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
device="brother5:bus2;dev2"
# device=$(scanimage -f "%d%n" | grep brother5 | head -n 1)
# device="brother5:bus2;dev2"
device=$(scanimage -f "%d%n" | grep brother5 | head -n 1)
echo "Selecting scanner '$device'"
# option values for the brother DS-740D scanner
@ -66,13 +66,15 @@ scan() {
esac
echo "Scanning to '$next_out_file'..."
echo scanimage \
scanimage \
--device-name=$device \
--format=pdf \
--output-file="$next_out_file" \
--mode="$scanner_mode" \
--resolution="$resolution" \
--source="$sides"
--source="$sides" \
-x 210 -y 297 # A4
}
case "$1" in