File scanbuttond-sbd-print.sh of Package scanbuttond
#!/bin/sh # one-touch copy # http://gentoo-wiki.com/Scanner_buttons_and_one-touch_scanning # DEVICE=$2 TMPFILE=$1 scanimage --device-name ${DEVICE} --format tiff --mode Gray \ --resolution 300 --sharpness 0 --brightness -3 \ -l 0 -t 0 -x 215mm -y 280mm \ --gamma-correction "High contrast printing" > ${TMPFILE}.tiff tiff2ps -z -w 8.27 -h 11.69 ${TMPFILE}.tiff | lpr rm -f ${TMPFILE}.tiff