Skip to content

Instantly share code, notes, and snippets.

@breunigs
Created August 14, 2013 10:40
Show Gist options
  • Save breunigs/6229912 to your computer and use it in GitHub Desktop.
Save breunigs/6229912 to your computer and use it in GitHub Desktop.
sharing your current selection as QR-Code. Most useful when binding it to a key in your window manager. Copying passwords to your smartphone never has been easier!11
#!/bin/sh
share=$(xclip -o | sed 's/\s*$//g')
qrencode -s 7 -o - "$share" | display -title "$share share-qrcode-float"
# recommended i3-config:
# for_window [title="share-qrcode-float"] floating enable border normal; move position center
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment