Skip to content

selvin/qr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code Generator

A simple command-line tool to generate QR codes from URLs. Features include clipboard support, URL shortening, and file output options.

Installation

  1. Clone this repository
  2. Run the installer:
python install.py

This will create a qr command in your PATH (~/bin on macOS/Linux, or Windows equivalent).

Usage

Basic usage (copies to clipboard):

qr "https://example.com"

Save to file:

qr --output ~/Desktop/myqr.png "https://example.com"

Shorten URL and create QR:

qr --shorten "https://example.com"

URL Shortening Configuration

To use the URL shortening feature (--shorten flag), you'll need a t.ly API key. You can set it up in two ways:

  1. Environment variable:
export TLY_API_KEY="your-api-key"
  1. Configuration file at ~/.qr.conf.yaml:
---
TLY_API_KEY: your-api-key-for-tly

Platform-Specific Notes

Linux

For clipboard support, you'll need either:

  • xclip (for X11)
  • wl-copy (for Wayland)

Install the appropriate one for your system:

# For X11
sudo apt-get install xclip

# For Wayland
sudo apt-get install wl-clipboard

macOS

Works out of the box with clipboard support.

Windows

Works out of the box with clipboard support.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages