naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.13k stars 78 forks source link

Add support for `-` filename syntax #266

Open foxpy opened 1 year ago

foxpy commented 1 year ago

Currently, maim will save image into file named - instead of piping it into stdout, like other Unix utilities do.

This issue superseeds #265.

slyshot commented 1 year ago

Fairly easy to make a patch -- one line in fact.

https://github.com/slyshot/maim/commit/8ee2d1afccefbe4d0326d2a548be38abd9e4aa89

Not sure if this is hacky, though. I don't think it corrupts the meaning of "savepathGiven" since - isn't actually meant to be a save path.