Hyprshot
Hyprshot copied to clipboard
Screen region in game not possible.
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.
Can't reproduce playing Loop Hero. Which game did you try?
Its ture that the focus stayes on the game, but if you leave the workspace where teh game is playing you can dismiss it.
Not really sure what we can do about this. If anyone has any ideas, feel free to pitch in
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.
If you don't want to force this change you could always just make it a command line option
Though given that this whole project is written in just shell the complexity of this task may be rather high
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
Did you try --freeze option?
#!/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)