]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Size option for qrpaste
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 29 Apr 2023 18:24:03 +0000 (15:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 29 Apr 2023 18:24:03 +0000 (15:24 -0300)
qrpaste

diff --git a/qrpaste b/qrpaste
index f85394161bfe87e830515488a8cc6b64c24de34b..889bd17948a65473f2076f1ff849d144e3782849 100755 (executable)
--- 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