
[](./LICENSE)
[](https://codecov.io/gh/Lenivaya/qrrs)


# Info
QRrs is a simple, cross-platform, command-line utility written in rust for working with qr codes (what actually follows from the name).
## Usage
### Quickly generate qr code
```console
qrrs "Your input here"
```
### Generate code, than read it
```console
qrrs "Something" /tmp/qr.png
```
```console
$ qrrs --read /tmp/qr.png
Something
```
### Print generated code to term
```console
qrrs -t "Something" /tmp/qr.png
```
```rich-text-format
█████████████████████████████
█████████████████████████████
████ ▄▄▄▄▄ █▄ █▄▄█ ▄▄▄▄▄ ████
████ █ █ █▀▄████ █ █ ████
████ █▄▄▄█ █ ▄█▀▄█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ ▀ ▀ █▄▄▄▄▄▄▄████
████▄███ █▄▄ ▄▀ ▀▄▄▄ █▀▄████
████▄ ▀█▀▄▄▀▄▀▀▄█▀▄█ █▄ ▀████
████▄█▄██▄▄▄▀▀▀█ ▄▀█ ▀█▄ ████
████ ▄▄▄▄▄ █▄▀▄▀ ▄▄▀ ██ █████
████ █ █ █▄█▀ ▀▄▄█ ▀▀ ▀████
████ █▄▄▄█ ██▀ ▄█▀ ▀ ████████
████▄▄▄▄▄▄▄█▄▄▄█▄▄▄▄█▄██▄████
█████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
```
### Show code as text in terminal
```console
qrrs --read --terminal /tmp/qr.png
```
```rich-text-format
█████████████████████████████
█████████████████████████████
████ ▄▄▄▄▄ █▄ █▄▄█ ▄▄▄▄▄ ████
████ █ █ █▀▄████ █ █ ████
████ █▄▄▄█ █ ▄█▀▄█ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ ▀ ▀ █▄▄▄▄▄▄▄████
████▄███ █▄▄ ▄▀ ▀▄▄▄ █▀▄████
████▄ ▀█▀▄▄▀▄▀▀▄█▀▄█ █▄ ▀████
████▄█▄██▄▄▄▀▀▀█ ▄▀█ ▀█▄ ████
████ ▄▄▄▄▄ █▄▀▄▀ ▄▄▀ ██ █████
████ █ █ █▄█▀ ▀▄▄█ ▀▀ ▀████
████ █▄▄▄█ ██▀ ▄█▀ ▀ ████████
████▄▄▄▄▄▄▄█▄▄▄█▄▄▄▄█▄██▄████
█████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
```
### Save it into another file
```console
qrrs --read --terminal /tmp/qr.png /tmp/qr1.png
```
Almost the same result will be without terminal flag, but now instead of QrCode printed in terminal we will see text from it.
```console
qrrs --read /tmp/qr.png /tmp/qr1.png
```
### Create code using pipeline
Use "**-**" to signalize passing data via stdin.
```console
$ echo "something" | qrrs - /tmp/something.png
$ qrrs -r /tmp/something.png
something
```
### Invert colors

### Create code specifying it's margin


## Install
## Nix
```console
nix run github:Lenivaya/qrrs -- "your input"
```
### Using last version through overlay in nixos config
Add this repository as an input to your flake:
```nix
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
qrrs = {
url = "github:lenivaya/qrrs";
inputs.nixpkgs.follows = "nixpkgs";
};
```
Then use the overlay somewhere in your config:
```nix
{inputs, pkgs, ...}: {
nixpkgs.overlays = [inputs.qrrs.overlays.default];
environment.systemPackages = with pkgs; [qrrs];
}
```
## NetBSD
```console
pkgin install qrrs
```
### From crates.io
```console
cargo install qrrs
```
### From github
```console
cargo install --git https://github.com/Lenivaya/qrrs.git
```
### [Precompiled binaries](https://github.com/Lenivaya/qrrs/releases)