From 86f4216cdebe4a9c2d97f3006b16241e3355598d Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 2 Apr 2020 10:44:28 +0200 Subject: [PATCH] qrshow: read from stdin --- misc/qrshow | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/qrshow b/misc/qrshow index 23e2b05..aacb5d0 100755 --- a/misc/qrshow +++ b/misc/qrshow @@ -1,2 +1,6 @@ #!/bin/zsh -qrencode -s 40 "$*" -o - | feh -ZF - +if [[ -z "$1" ]]; then + qrencode -s 40 -o - +else + qrencode -s 40 "$*" -o - +fi | feh -ZF -