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