aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_local/bin/executable_wqr
diff options
context:
space:
mode:
Diffstat (limited to 'dot_local/bin/executable_wqr')
-rwxr-xr-xdot_local/bin/executable_wqr11
1 files changed, 11 insertions, 0 deletions
diff --git a/dot_local/bin/executable_wqr b/dot_local/bin/executable_wqr
new file mode 100755
index 0000000..254f992
--- /dev/null
+++ b/dot_local/bin/executable_wqr
@@ -0,0 +1,11 @@
+#!/usr/bin/env sh
+
+if [ -z "$1" ]; then
+ text=$(wl-paste)
+elif [ "$1" = "-" ]; then
+ read -r text
+else
+ text="$1"
+fi
+
+printf '%s' "$text" | qrencode -t PNG -o - | imv -