Hacker News new | ask | show | jobs
by majewsky 2235 days ago
I use

  wl-paste | qrencode -s 20 -o - | display -
for this purpose. Shows the contents of the current Wayland clipboard as a QR code. For X11, replace `wl-paste` with `xsel -b`.
1 comments

Oooh nice. Better yet, you can show that QR code directly in the terminal:

  qrencode -t ansiutf8 google.com
Looks identical. In WSL, you can use 'powershell.exe Get-Clipboard':

  powershell.exe Get-Clipboard | qrencode -t ansiutf8