From 1391b72c26998ed994d485a5e572fe8369252529 Mon Sep 17 00:00:00 2001 From: Prunebutt Date: Mon, 22 Sep 2025 00:22:42 +0200 Subject: [PATCH] add geometry --- scanbuddy.bash | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scanbuddy.bash b/scanbuddy.bash index 6893419..6c088b3 100755 --- a/scanbuddy.bash +++ b/scanbuddy.bash @@ -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