Gustash/Hyprshot

supplied geometry did not intersect with any outputs error when trying to take a screenshot of a region

Closed this issue · 5 comments

System information

OS: EndeavourOS Linux x86_64
Kernel: 6.8.7-arch1-1
DE: Hyprland
CPU: 12th Gen Intel i7-12700H (20) @ 4.600GHz
GPU: Intel Alder Lake-P GT2 [Iris Xe Graphics]
GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q
GPU Driver: i915

Issue description

When trying to take a screenshot of a region with hyprshot -m region I get an error message:

supplied geometry did not intersect with any outputs

Therefore I cannot take a screenshot with it

How to replicate

Run: hyprshot -m region, select an area and see what happens

A video showing the issue:
https://github.com/Gustash/Hyprshot/assets/91026972/43edfd4c-ebc0-48d4-8600-28a70a3248b9

Try to run it with -d option and ensure that all dependency such as grim and slurp installed

I have both grim and slurp installed. Hyprshot used to work and then at some point (I don't know when) it broke.
Running with debug flag:

❯ hyprshot -m region -d
Saving in: /home/jernej/Pictures/2024-04-26-090222_hyprshot.png
Geometry: 647,-595 434x227
Crop: 647,0 434x-368
supplied geometry did not intersect with any outputs

I assume the geometry shoudn't be negative

Do you have some monitor on negative positions?

This is how my montor is defined in my config:

monitor=ePD-2,2560x1440@165,0x0,1.5,mirror,HDMI-A-1

Well it seems that my monitor was indeed on negative positions for whatever reason, even though I did not change my monitor definiteion for a year.
Changing my monitor definition in the config to:

monitor=,preferred,auto,1.6

Seemed to fix the issue, so now it works perfectly like before.
Thank you for the help :)