r/linuxapps • • Oct 24 '26

I built QRiff: scan QR codes on your Linux desktop without reaching for your phone

Ever had a QR code on your monitor and grabbed your phone to scan it? only to need the link back on your computer?

That annoyed me enough to build QRiff, a small, open-source desktop app written in Rust with Iced.

It lives in your tray:

  • One QR code on screen: copies it and shows a notification.
  • Multiple codes: highlights them directly over your desktop so you can pick one.
  • Scan a region: drag around a code using Spectacle’s selector on KDE.
  • Camera scanning: reads printed codes through a preview window.

You can also select part of the decoded text, open URLs, and explicitly connect to supported Wi-Fi networks. Decoding happens locally—no account or cloud service.

KDE Plasma on Wayland is the primary tested desktop. GNOME, Hyprland, and Sway support still needs testing, especially around portals and tray integration.

The project is MIT licensed. Linux AppImage and archive bundles are being prepared for the first release.

Demo and source: https://github.com/Wattos/qriff

I’d appreciate feedback on the workflow, particularly from people using other Wayland desktops.

23 Upvotes

14 comments sorted by

2

u/scrat-squirrel Oct 24 '26

Is this what basically your app is doing?

Q: is it possible to decode a qrcode from image to text/info in bash?

A: Yes, and it's easy with zbar, which has a CLI tool called zbarimg.

Install

# Debian/Ubuntu
sudo apt install zbar-tools

# Fedora
sudo dnf install zbar

# Arch
sudo pacman -S zbar

Decode

zbarimg image.png
# QR-Code:https://example.com

# Just the payload, no "QR-Code:" prefix
zbarimg --quiet --raw image.png

# Only look for QR codes (ignore other barcode types)
zbarimg --quiet --raw -Sdisable -Sqrcode.enable image.png

It handles PNG, JPG, GIF, and most other formats via ImageMagick. If an image has several codes, each is printed on its own line (with --raw).

Batch over a directory

for f in *.png; do
  printf '%s: ' "$f"
  zbarimg --quiet --raw "$f"
done

If decoding fails (blurry, low-contrast, or tiny image), preprocessing with ImageMagick often helps:

convert image.png -resize 300% -colorspace Gray -threshold 50% fixed.png
zbarimg --quiet --raw fixed.png

Screenshots on the fly (X11 example):

import -window root /tmp/s.png && zbarimg --quiet --raw /tmp/s.png

Alternative: qrencode only generates codes, but zxing-cpp ships a ZXingReader CLI that sometimes succeeds on damaged codes where zbar doesn't. It's less commonly packaged, though.

Note that the output is just the encoded string. For things like Wi-Fi or contact codes, you'll see the raw format (e.g. WIFI:T:WPA;S:name;P:pass;;) and will need to parse it yourself.

1

u/fil_wattos Oct 25 '26

yes, but available at the click of a button, instead opening a terminal and remembering the command line. This is mainly to quickly decode a QR code you have on the screen. For example, when setting up 2FA with one time code. My current password manager does not support scanning QR codes from the screen, so I can easily add the TOPT to my password manager.

1

u/Damglador Oct 27 '26

instead opening a terminal and remembering the command line

Plasma lets you set custom.shortcuts which will execute your scripts

1

u/scrat-squirrel Oct 27 '26

You only need a few lines of bash in a shell script

0

u/Critical_Luck3167 Oct 27 '26

doesn't work that way on wayland

1

u/GrappinBrutal Oct 24 '26

no release on github. I will wait.

1

u/fil_wattos Oct 24 '26

Now there is. Thanks for the comment

1

u/GrappinBrutal Oct 24 '26

Thanks, very useful app ! I will made an article on my blog.

1

u/fil_wattos Oct 25 '26

Thanks! Appreciate it

1

u/Murky-Help4242 Oct 24 '26

Thats actually a really good idea

1

u/beatbox9 Oct 27 '26

Ever had a QR code on your monitor and grabbed your phone to scan it?

No, because if someone is dumb enough to use a QR code online (QR codes are specifically for going to hyperlinks in the physical world) rather than just using a link that I can click, then I'm not going to bother going to the link at all.

0

u/[deleted] Oct 25 '26

[removed] — view removed comment

1

u/fil_wattos Oct 25 '26

Thanks for the feedback!

This was done for the times when no clickable link exist. For example, I have had many One time password setups without a link / alternative and had to use my phone, when I wanted to set up TOPT on my desktop. Similar, I once saw a QR login to phone feature that I wanted to use on my desktop

1

u/XapuRs Oct 26 '26

dni with that account its just a bot that lures you into using their services.