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

--nokeyboard to cancel, except Esc #218

Open OJFord opened 3 years ago

OJFord commented 3 years ago

I ran the maim -s | xclip .. example from the readme, and was initially surprised that when I switched back to Firefox to screenshot the readme to test, that the crosshair disappeared. (I use i3, so switching back to Firefox meant keystrokes.)

I thought maybe that's ok, if I run it from a keyboard shortcut I'm less likely to want to press anything else before I take the screenshot, but then I found the --nokeyboard option, so that's ok anyway.

What would be good I think though is the ability to add a key(s) back in, Esc, for example. I'd perhaps even argue that any key cancelling it is quite a surprising default; but certainly Esc comes more naturally to me to cancel than right-click for some reason, despite obviously already using the mouse to make the selection.

foxpy commented 3 years ago

I have digged through source code, this issue is relevant for slop, but not for maim.