qrshow: read from stdin

This commit is contained in:
crater2150 2020-04-02 10:44:28 +02:00
parent b1b6b52fc8
commit 86f4216cde

View file

@ -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 -