summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-03-30 19:57:37 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-03-30 19:57:37 +0530
commitd3c6b05361cb177e2da1c5961aa82e1da42eb412 (patch)
tree52dd3f5fcfcfc5918936e92ebc3bd45f7e1c0561 /.local/bin
parent0fca442eeead2bdd99df7f84412db077d8e2c875 (diff)
minor changes + qrscan
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/improveqrscan12
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