diff options
Diffstat (limited to 'dot_local/bin/executable_wqr')
| -rwxr-xr-x | dot_local/bin/executable_wqr | 11 |
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 - |
