diff options
-rwxr-xr-x | .local/bin/lps | 9 |
1 files changed, 9 insertions, 0 deletions
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 |