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.15k stars 78 forks source link

interactive selection #186

Closed whoizit closed 5 years ago

whoizit commented 5 years ago

is it possible to make interactive selection like this? https://github.com/lupoDharkael/flameshot

naelstrof commented 5 years ago

Yeah! Simply chain maim into GIMP, Krita, Pinta, or any other image manipulation program. A tiny bash script could do it like so:

!#/bin/bash
maim /tmp/screenshot.png
gimp /tmp/screenshot.png

Key is to find a simple image editor that suits what you need or simply configure/modify one of the existing editors. You're only limited by your imagination and programming skills.

A cheap hack for doing quick freeze crops of the screen would look like this:

!#/bin/bash
maim /tmp/screenshot.png
feh -x -F /tmp/screenshot.png &
id=$!
maim -s /tmp/croppedshot.png
kill $id

Replace feh with something that can draw arrows or blur sections of the screen and you got exactly what you're asking for.