aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-04-29 15:24:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-04-29 15:24:03 -0300
commit8b05c2ffd911b83bee7bd3eefe187ed057f0ebdf (patch)
tree0fcf892c461e80a42e0f97190aeeb7b1845e2ac4
parent82f2bed62b402dc82432215e91ba524a583ebaba (diff)
downloadutils-x11-8b05c2ffd911b83bee7bd3eefe187ed057f0ebdf.tar.gz
utils-x11-8b05c2ffd911b83bee7bd3eefe187ed057f0ebdf.tar.bz2
Size option for qrpaste
-rwxr-xr-xqrpaste3
1 files changed, 2 insertions, 1 deletions
diff --git a/qrpaste b/qrpaste
index f853941..889bd17 100755
--- a/qrpaste
+++ b/qrpaste
@@ -7,6 +7,7 @@
BASENAME="`basename $0`"
TEMP="`mktemp -d`"
OUT="$TEMP/clipboard.png"
+SIZE="15"
# Check
if ! which qrencode &> /dev/null; then
@@ -21,7 +22,7 @@ elif ! which display &> /dev/null; then
fi
# Run
-qrencode -o "$OUT" "`xclip -o`"
+qrencode -o "$OUT" "`xclip -o`" -s $SIZE
display $OUT
# Teardown