Skip to content
Anant Mishra edited this page May 2, 2023 · 7 revisions

Usage

  • Clipboard text

qrcopy
  • Input text

qrcopy -i "Hello World"
  • Input file

qrcopy -f <FILE NAME>
  • Save QR as image

qrcopy -o "qrcode.png"

Warning

# When both file and input text are used .i.e
qrcopy -i "Hello World" -f hello.txt
# Input text will be shared with QR-Code

Note

To use Pastebin insert you Pastebin API Key in ~/.config/qrcopy/qrcopy.json -> PASTEBIN_API_KEY

  • Upload to pastebin

For EXPIRY DATE vaild values are

  • N = Never
  • 10M = 10 Minutes
  • 1H = 1 Hour
  • 1D = 1 Day
  • 1W = 1 Week
  • 2W = 2 Weeks
  • 1M = 1 Month
  • 6M = 6 Months
  • 1Y = 1 Year

Visit here for the available 200 formats

# Default format : text; Expiry : 1D
qrcopy -p <FORMAT> <EXPIRY DATE>

qrcopy -p # Clipboard text
qrcopy -i "Hello World" -p # Input text
qrcopy -f hello.txt -p # Input text file
qrcopy -f hello.html -p # Input HTML file

qrcopy -f hello.html -pf html5 -p # Upload hello.html with HTML5 syntax highlighting
qrcopy -f hello.html -pf html5 -pe 1W -p # Upload hello.html with HTML5 syntax highlighting, expired in 1 week
  • With other commands

Format : command | qrcopy -s

# Generating qrcode for output of cat command
cat file | qrcopy -s 

# Generating qrcode for url of file uploaded at 0x0.st file sharing service
command | curl -F 'file=@-' 0x0.st | qrcopy -s 

# Upload log of strace command to 0x0.st and generate qrcode for the url
strace command | curl -F 'file=@-' 0x0.st | qrcopy -s 

# Upload image to 0x0.st and generate qrcode of the url
curl -F'[email protected]' 0x0.st | qrcopy -s
Clone this wiki locally