Hyprshot icon indicating copy to clipboard operation
Hyprshot copied to clipboard

Screen region in game not possible.

Open Scienox opened this issue 1 year ago • 9 comments
trafficstars

The focus stay in game, to select the screen region I need to shut the game and there I can remove or selected the screen region. Same for windowed mode but it's working in window mode without boderless.

Scienox avatar Feb 26 '24 17:02 Scienox

Can't reproduce playing Loop Hero. Which game did you try?

ProMix0 avatar Feb 27 '24 05:02 ProMix0

Its ture that the focus stayes on the game, but if you leave the workspace where teh game is playing you can dismiss it.

jernejmarcic avatar Apr 25 '24 21:04 jernejmarcic

Not really sure what we can do about this. If anyone has any ideas, feel free to pitch in

Gustash avatar Jun 01 '24 18:06 Gustash

Other utilities (at least I dunno, Windows+Shift+S on windows) solves this by actually taking a screenshot the instant the binary is run without moving focus or creating windows/overlays or interaction then allowing you to select the region. For -m window/output it seems to move focus as well unless -c is passed, though if you wanted to select the window that would be a bit more complicated, maybe select it all the same but just take its bounding box and applying it to the already-taken image. IMO this is how all screenshot utilities should work as it's just more convenient, for example I was trying to use hyprshot to take a screenshot of the extensions pop out on the url bar in chrome but every time I tried to select the window it would move focus and the extensions pop out would disappear.

gordoncyu avatar Aug 05 '24 22:08 gordoncyu

If you don't want to force this change you could always just make it a command line option

gordoncyu avatar Aug 05 '24 22:08 gordoncyu

Though given that this whole project is written in just shell the complexity of this task may be rather high

gordoncyu avatar Aug 05 '24 22:08 gordoncyu

My interim solution is just to run gimp instead of -m region like

hyprshot -m output -c -- gimp

but this is rather inconvenient as it is not streamlined for the task requiring a lot more user input for the common task of screenshoting a region

gordoncyu avatar Aug 05 '24 22:08 gordoncyu

Did you try --freeze option?

ProMix0 avatar Aug 09 '24 02:08 ProMix0

#!/bin/bash
hyprpicker -r -z &
sleep 0.1
hyprshot -m region --clipboard-only

Stolen from somewhere on github (maybe even from here somewhere?) and removed some other commands as was suggested by different users on reddit. Hyprpicker freezes screen, hyprshot does region capture. Works in games (at least for me it works in dota and path of exile)

Memoframe avatar Sep 13 '24 15:09 Memoframe