From b487984ecc61c6229cf92550030745c192fd3d0b Mon Sep 17 00:00:00 2001 From: Arnold Sommerfeld Date: Wed, 17 May 2023 18:44:48 +0100 Subject: first commit --- home/.local/bin/wqr | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 home/.local/bin/wqr (limited to 'home/.local/bin/wqr') diff --git a/home/.local/bin/wqr b/home/.local/bin/wqr new file mode 100755 index 0000000..09186ff --- /dev/null +++ b/home/.local/bin/wqr @@ -0,0 +1,11 @@ +#!/usr/bin/env sh + +if [ -z "$1" ]; then + text=$(xclip -o -selection clipboard) +elif [ "$1" = "-" ]; then + read -r text +else + text="$1" +fi + +printf '%s' "$text" | qrencode -t SVG -o - | feh - --conversion-timeout 1 -- cgit v1.2.3-70-g09d2