maim icon indicating copy to clipboard operation
maim copied to clipboard

Make --hidecursor the default or give it a short option.

Open Earnestly opened this issue 10 years ago • 11 comments

This is a suggestion to bring maim more in inline with scrot. At least personally and all the people I've spoken to, the default of showing the mouse pointer only seems to only get in the way of the content (troubleshooting). It would be nice if either --hidecursor was made the default operation or a more convenient shortopt was provided.

A workaround for now is to use aliases or wrapper scripts.

Earnestly avatar Jul 11 '15 11:07 Earnestly

I have to agree with you since even I use --hidecursor in my scripts haha. I put it in the cursor by default due to a special circumstance where I wanted to point out a certain word in a text image with the mouse in a screenshot. I realize the best way for this is to have maim have a delay so that people can move the cursor where they want it, but that's dumb.

You're right, maim should default to hide the cursor. I've already implemented the change on the experimental branch. It'll get merged as soon as I figure out how to get the Arch maintainers to not strip all the functionality from community/devil. Or when I just write my own image lib for experimental slop.

You should be able to use the experimental branch for now though.

naelstrof avatar Jul 11 '15 18:07 naelstrof

OK it's fully implemented with e18b06121a9036ff56c691ab34db7ce8661a5df8 and ab83360b3e88500c00b4eda1b10802769d35529a. Feel free to close this issue if you feel like they're adequate.

naelstrof avatar Jul 11 '15 21:07 naelstrof

Wonderful, thanks for the quick reponse and even fix o/

Earnestly avatar Jul 12 '15 17:07 Earnestly

This seems to have been reverted where -u is now necessary to explicitly hide the mouse pointer. Is this intentional?

Earnestly avatar Jun 05 '17 19:06 Earnestly

Whoops, I accidentally reverted this during my refactor. I'll fix it in a bit.

naelstrof avatar Jun 05 '17 21:06 naelstrof

I forget, was this changed? I suppose a lot of the screenshots I've been taking was dragging from the right to the left, top to bottom, and so my pointer didn't show up much to notice.

I did one in reverse and it still shows up, but I can't remember if this was fixed and regressed or wasn't fixed. Hmm, it still seems to be showing up when building from master (f0c5de9).

Earnestly avatar Nov 02 '17 21:11 Earnestly

Hey there! I got here from Google, while I was searching for a way to hide the mouse cursor. It gets in the way when creating screenshots out of very small selections, especially when dragging left to right, top to bottom.

Adding --hidecursor was enough to make the mouse cursor disappear, and solved my issue! Thank you!

KeepBotting avatar Feb 15 '18 17:02 KeepBotting

The mouse cursor is still showing up as of v5.4.68 (version in the Ubuntu repository).

kas avatar Oct 23 '18 21:10 kas

@kas Cannot reproduce using maim 5.5.2, the cursor is hidden as expected when using --hidecursor

KeepBotting avatar Oct 23 '18 21:10 KeepBotting

Ah jeez, I hate changing stuff like this because people are already probably used to how it works as is, there's no convention saying what's "normal" really.

@KeepBotting I believe they want maim to ignore the cursor by default, not just that the flag is doing what is intended.

I feel real bad that I spaced this (again!), it's something that doesn't bother me at all since maim is kind of meant to be used in other utility scripts.

When I get to it, I'll do what I did last time and add a --showCursor option that overrides the --hideCursor. That way you can alias it to your hearts content, and if you needed to show the cursor you can just specify the flag that shows the cursor. Emulating scrot's functionality perfectly.

However it'll be a while, I'm currently transitioning jobs and doing school still. Again sorry for dropping the ball on this one!

naelstrof avatar Oct 23 '18 22:10 naelstrof

Any news on this? I really don't think showing the cursor should be the default personally, but if it's going to be the case I'll have to make wrappers (aliases are not enough because maim is not always run from a shell).

Earnestly avatar Jan 28 '19 12:01 Earnestly