unclutter-xfixes icon indicating copy to clipboard operation
unclutter-xfixes copied to clipboard

Screenshotting part of the screen using imagemagick's import is hard

Open Jonta opened this issue 2 years ago • 7 comments

Ubuntu 21.10 i3 4.19.1-non-git ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25

Reproduce:

  • Run import test-screenshot.png - Either from dmenu or gnome-terminal

What happens:

  • Cursor disappears, even though I'm moving it
  • (Drawing a rectangle, and saving a screenshot still works)

What should happen:

  • Cursor should not disappear (and instead turn into the normal crosshair)

Didn't find "screenshot" in the man-pages for unclutter or unclutter-xfixes

Jonta avatar Mar 31 '22 21:03 Jonta

Are you sure this is related to unclutter-xfixes? As in: if you don't run it, everything works fine? Does this happen with other tools that grab the cursor, too?

Airblader avatar Apr 01 '22 12:04 Airblader

Are you sure this is related to unclutter-xfixes? As in: if you don't run it, everything works fine?

Yes. SIGTERM-ed unclutter-xfixes now, cursor stays, and turns into a crosshair when using import

Does this happen with other tools that grab the cursor, too?

Example? =)

xbanish is mentioned on the ArchWiki Unclutter page, but if that only hides the cursor during typing, it's probably not going to have an effect here

I tried with xbanish anyway, and the crosshair appears while running it

Jonta avatar Apr 10 '22 15:04 Jonta

I didn't mean replacements for unclutter, but replacements for import, eg other similar tools like maim. I'm trying to understand if the issue is specific to import or not.

Airblader avatar Apr 10 '22 15:04 Airblader

maim --select test.png shows me crosshair, both when executed from gnome-terminal and dmenu

So it seems like an import-thing

Jonta avatar Apr 11 '22 12:04 Jonta

Yeah, I would think so, too; import is quite an old tool, I have no idea how it works. I would generally recommend to use a more modern replacement like maim anyway, though of course you can use what you prefer. I'll leave this issue open if anyone wants to investigate this further, but I won't do so myself.

Airblader avatar Apr 12 '22 06:04 Airblader

import was just the only one I've ever used

I'll probably switch over to maim, alias maim --select to something else for less typing, and then get dmenu to read aliases, where this thread seems helpful: https://askubuntu.com/questions/1135073/dmenu-doesnt-recognise-aliases

Jonta avatar Apr 14 '22 22:04 Jonta

For the record: I was having the exact same problem with import, that I could trace to unclutter. Switched to maim -s as suggested, and things are fine now.

rdiaz02 avatar Apr 23 '24 12:04 rdiaz02