Created
July 10, 2024 02:43
-
-
Save Arkanic/30d98c6f66292f96358a9a454bceb330 to your computer and use it in GitHub Desktop.
On-screen QR code scanner (KDE)
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
#!/bin/bash | |
# requires spectacle, xclip, zbar-tools, and dmtx-utils | |
# creates a spectacle "rectangle select box", highlight area with QR, barcode, or matrix and press enter - if successful the result will be in your clipboard | |
spectacle --background --region --nonotify --output /tmp/qrscreenshot.png | |
(zbarimg -q --raw /tmp/qrscreenshot.png || dmtxread /tmp/qrscreenshot.png) | xclip -selection clipboard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment