Flameshot: Capture focused window

Created on 4 Sep 2018  路  3Comments  路  Source: flameshot-org/flameshot

What about an option to capture only the focused window? And maybe the possibility of using the focused window name in the filename, for better organization.

I achieved that on scrot using the code below, but I can't figure out how to adapt this for flameshot:

scrot -uz $(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)-$(date +%Y%m%d_%H%M%S).png
Enhancement

Most helpful comment

@sephore Look at this https://github.com/lupoDharkael/flameshot/tree/opencv, you can try to build it.

All 3 comments

@sephore Look at this https://github.com/lupoDharkael/flameshot/tree/opencv, you can try to build it.

There is an issue about this, I think adding a specific mode for this is not a bad idea. I could also add the geometry of the available frames to the list of detected rectangles to ensure the automatic selection in the computer vision selection mode.

Capturing an entire window (by selection or focus) is my #1 use case. I would love to see this implemented.

Was this page helpful?
0 / 5 - 0 ratings