12345678910111213141516171819202122 |
- #!/bin/sh
- file=/tmp/qr.png
- if test "$1" = "-O"; then
- shift
- if test "$1" = ""; then
- herbe "No ouput file found!" &
- exit 0
- else
- file=$1
- shift
- fi
- fi
- qrencode -o ${file} `xclip -out`
- if test "$1" = "-o"; then
- feh ${file}
- else
- herbe "QR Generated in /tmp/qr.png!" &
- fi
|