summaryrefslogtreecommitdiff
path: root/.local/bin/lps
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-03-14 15:44:20 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-03-14 15:44:20 +0100
commit71dd11054c0e8f13e148ab669b69c312202f6dc8 (patch)
tree6eded911b429db18a45f9bcc32ccc9fa6ceba75b /.local/bin/lps
parent448077c13f002752a728ed3dd4127b014bb12b13 (diff)
bash & lps: Make use of $PRINTER
Diffstat (limited to '.local/bin/lps')
-rwxr-xr-x.local/bin/lps4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/lps b/.local/bin/lps
index 8e49fa5..2df4126 100755
--- a/.local/bin/lps
+++ b/.local/bin/lps
@@ -1,9 +1,9 @@
#!/usr/local/bin/andy
-set flags -m color -r 300
+set flags -m color
if test $#args -ge 2 {
set flags $flags --area=0,0,$args[1],$args[1]
}
-set uri `lpoptions | sed -E 's/.*device-uri=hp:([^ ]+).*/hpaio:\1/'
+set uri `lpoptions -p $PRINTER | sed -E 's/.*device-uri=hp:([^ ]+).*/hpaio:\1/'
chronic hp-scan -d $uri $flags