In kinda sorta related news, here's my super lame QR decoder one liner. It takes a screenshot and looks for a qr code (actually for many bar code formats) and then spits the results in a zenity window. Dependencies: scrot, zbar-tools, zenity.

scrot /tmp/scrot_'%s.png' -e 'zbarimg -q $f|sed s/QR-Code://|zenity --text-info --title="zbarimg-zenity output" --height 250 --width 400;rm -f $f'

(Public domain)

So, if you see a large enough, high quality bar code on your screen that happens to be known to zbarimg, the command should produce the decoded string. I have that on a hotkey. Since I mostly stumble upon QR codes, I added that sed replacement bit to remove the QR prefix.

Reply via email to