diff options
Diffstat (limited to '.local/bin/improveqrscan')
-rwxr-xr-x | .local/bin/improveqrscan | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/improveqrscan b/.local/bin/improveqrscan new file mode 100755 index 0000000..9e84d6b --- /dev/null +++ b/.local/bin/improveqrscan @@ -0,0 +1,12 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "Enter a valid image with QR code" +else + zbarimg -q $1 | cut -b 1-8 --complement | xclip -o -sel c; +##use in command line argument like +##qrscan "image" | xclip -sel c -o because +## ERROR: target STRING not available +## xclip -o outputs current clipboard... +## xclip -i flag standard input +fi |