From b0e3ff5e7ca199342bcd4afc46caf3ac1cb5c48e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 13 Oct 2023 03:48:31 +0200 Subject: lps: Add script for scanning documents --- .local/bin/lps | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/bin/lps diff --git a/.local/bin/lps b/.local/bin/lps new file mode 100755 index 0000000..135848d --- /dev/null +++ b/.local/bin/lps @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +flags='-m color -r 300' +[ $# -eq 1 ] && flags="$flags --area=0,0,$1,$1" + +uri="$(lpoptions | sed -E 's/.*device-uri=hp:([^ ]+).*/hpaio:\1/')" +chronic hp-scan -d "$uri" $flags -- cgit v1.2.3