Skip to content

Instantly share code, notes, and snippets.

@melbourne2991
Created September 24, 2018 05:37
Show Gist options
  • Save melbourne2991/c01709f201538737c35e5b1c8c8196a6 to your computer and use it in GitHub Desktop.
Save melbourne2991/c01709f201538737c35e5b1c8c8196a6 to your computer and use it in GitHub Desktop.
QR Code Screen Scanner
#!/usr/bin/env bash
# Usage:
# brew install zbar
# run qrscan.sh, drag over qr code.
cd /tmp/
screencapture -i zbarscreen.png
zbarimg -q ./zbarscreen.png || echo "No barcode found."
rm zbarscreen.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment