Skip to content

Instantly share code, notes, and snippets.

@breunigs
Created August 14, 2013 10:29
Show Gist options
  • Save breunigs/6229833 to your computer and use it in GitHub Desktop.
Save breunigs/6229833 to your computer and use it in GitHub Desktop.
reads barcodes/qrcodes currently visible on the screen
#!/bin/sh
# requires:
# zbar-tools scrot zenity debianutils
scrot "$(tempfile).png" --exec 'zbarimg "$f"; rm "$f"' 2>&1 | zenity --title "Barcode Info" --text-info --width 450 --height 300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment