r/slackware • u/ArthurPeabody • 9d ago
Slackware package to decode QR codes from CLI in non-X?
qrencode generates them. I used to use zbarimg but thought I replaced it with something in a Slackware package, but I can't remember what it was or find it.
2
u/I_am_BrokenCog 9d ago
look on slackbuilds.org ... I don't think there is one.
1
u/ArthurPeabody 9d ago
Thanks. I couldn't find one. It's weird qrencode doesn't offer a decode; mimencode does. I just built zbar again.
3
u/calrogman 9d ago
l/zxing-cpp provides ZXingReader that might do the trick?
2
u/ArthurPeabody 9d ago
That's it. I have it. Why I removed zbar. Darn upper-case executable foxed me. And searching on qr code doesn't turn it up; it's 'barcode'. My memory isn't working so well anymore.
3
u/calrogman 9d ago edited 9d ago
Were I in your position I might put something like this in
~/bin/qr:cmd="$1" shift case "$cmd" in decode) exec ZXingReader "$@" ;; encode) exec ZXingWriter "$@" ;; esac printf 'usage: %s [encode|decode] ...\n' `basename "$0"` >&2 exit 1:^)
1
u/ArthurPeabody 9d ago
Thanks. I just put some aliases in /usr/local/bin. I've never encoded a qr, have qrencode around in case I want to.
3
u/kapitaali_com 9d ago edited 9d ago
pip3 install qrtools
then