diff options
Diffstat (limited to 'home/.local/bin/wqr')
-rwxr-xr-x | home/.local/bin/wqr | 11 |
1 files changed, 11 insertions, 0 deletions
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 |