Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jonta opened this issue Mar 31, 2022 · 7 comments
Open

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

Jonta opened this issue Mar 31, 2022 · 7 comments

Comments

@Jonta
Copy link

Jonta commented Mar 31, 2022

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

@Airblader
Copy link
Owner

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?

@Jonta
Copy link
Author

Jonta commented Apr 10, 2022

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

@Airblader
Copy link
Owner

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.

@Jonta
Copy link
Author

Jonta commented Apr 11, 2022

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

So it seems like an import-thing

@Airblader
Copy link
Owner

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.

@Jonta
Copy link
Author

Jonta commented Apr 14, 2022

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

@rdiaz02
Copy link

rdiaz02 commented Apr 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants