diff options
Diffstat (limited to '.local/bin/qrscan')
-rwxr-xr-x | .local/bin/qrscan | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/qrscan b/.local/bin/qrscan new file mode 100755 index 0000000..dcd3983 --- /dev/null +++ b/.local/bin/qrscan @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "Enter a valid image with QR code" +else + Link=$(zbarimg -q $1 | cut -b 1-8 --complement) && + echo $Link | xclip -sel c + notify-send "QR Link copied to clipboard" "$Link" +fi |