emersion / grim

Grab images from a Wayland compositor

Home Page:https://wayland.emersion.fr/grim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nothing outputed when piping thru wl-copy

AngeloFrangione opened this issue · comments

Hello, I noticed that grim doesn't output the data on standard output, so i cannot use it when piping thru wl-copy because nothing is given to wl-copy.

When i cat screenshot.png | wl-copy it works.

It should be easy fix, just add and option to output the raw data to standard output.

Use grim -.

Thank you, it's a strange option, is there a specific reason to use only - ?

Using - to indicate stdin or stdout instead of a filename is a common practice. See the man page for cat(1) for instance.