qrmake 295 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. file=/tmp/qr.png
  3. if test "$1" = "-O"; then
  4. shift
  5. if test "$1" = ""; then
  6. herbe "No ouput file found!" &
  7. exit 0
  8. else
  9. file=$1
  10. shift
  11. fi
  12. fi
  13. qrencode -o ${file} `xclip -out`
  14. if test "$1" = "-o"; then
  15. feh ${file}
  16. else
  17. herbe "QR Generated in /tmp/qr.png!" &
  18. fi