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

[Feature Request] Provide an option to capture the last selected region #288

Open ArbitraryRenaissance opened 9 months ago

ArbitraryRenaissance commented 9 months ago

It would be nice if there were a way to capture the same rectangular region that you captured with the last use of the command. For example:


maim -s | xclip -selection clipboard -t image/png
#[...some rectangular region is captured via mouse selection with coordinates C...]
maim -L | xclip -selection clipboard -t image/png
#The -L flag would generate a screenshot with the same coordinates C