summaryrefslogtreecommitdiff
path: root/.local/bin/lps
blob: 8e49fa5acd3c7b84fc46edf8bfbc45166850d76f (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/usr/local/bin/andy

set flags -m color -r 300
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/'
chronic hp-scan -d $uri $flags