bionnorthwest.blogg.se

Feh image viewer
Feh image viewer










feh image viewer
  1. FEH IMAGE VIEWER HOW TO
  2. FEH IMAGE VIEWER CODE

Turn an entire text file into a QR code: # Option 1: multiple linesĬat "$filename_to_encode" | qrencode -m 4 -o "/tmp/qrcode.png" If that is successful (hence the & part), eog opens that file in the background ( &), then we wait a second to ensure eog has finished opening the file ( sleep 1 ), then we automatically remove it ( rm /tmp/qr.png).

feh image viewer

The qrencode -o /tmp/qr.png part stores the image into /tmp/qr.png. So, you might as well just create your own temporary file and use eog to begin with, like this: qrencode -o /tmp/qr.png "& ((eog /tmp/qr.png &) sleep 1 \ You can zoom in and out with your mouse wheel. You can even open this image in eog now!: eog /tmp/feh_stdin_8WKtooĪnd eog is a much better viewer, with zoom controls. In this case, it is /tmp/feh_stdin_8WKtoo: I've highlighted the temporary file path in the image. If you do this you'll see that: qrencode -o - '| feh. Additionally, it uses temporary files anyway, so you're still creating temporary files by using it. feh is a primitive image viewer with no ability to zoom in and out that I can see. I want to point out that there's no real advantage to using feh, so I recommend using eog with temporary files you manually make. & ((eog /tmp/qr.png &) sleep 1 rm /tmp/qr.png)Ĭat "path/to/file.txt" | qrencode -m 4 -o /tmp/qr.png \ Tested on Ubuntu 18.04, 20.04, and 22.04, but does not work well on 22.04 since the eog image viewer now auto-closes once the temporary file is removed! In older versions of Ubuntu, the image viewer would stay open as-desired even after removing the temporary file. Option 2 (doesn't work well on Ubuntu 22.04): store in a temporary file, open in eog, then auto-remove the temporary file a moment later. feh - says to read the input from stdin.qrencode -o - says to write the output to stdout.

FEH IMAGE VIEWER CODE

1-line cmd to make a QR code from an entire fileĬat "path/to/file.txt" | qrencode -m 4 -o - | feh. 1-line cmd to make a QR code from a URL or text string Option 1 (now recommended, especially for Ubuntu 22.04 or later): pipe to the feh image viewer instead of to eog.

FEH IMAGE VIEWER HOW TO

How to best create QR Codes in Linux, including Ubuntu: Summary












Feh image viewer