Created
September 24, 2018 05:37
-
-
Save melbourne2991/c01709f201538737c35e5b1c8c8196a6 to your computer and use it in GitHub Desktop.
QR Code Screen Scanner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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