Advertisement
imShara

[QRi] Show selected text as QRcode with bash

May 5th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. #!/bin/bash
  2. # Shara 2012
  3. # Show selected text as QRcode
  4. # for rapid sending links to smartphone
  5. # free4all
  6. SOURCETEXT=$(xclip -o)
  7. qrencode -l M -s 8 -o /tmp/qri.png "$SOURCETEXT"
  8. gloobus-preview /tmp/qri.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement