Artificial intelligent assistant

Screenshot of non active window How to take a screen shot of non active window? If I have 2 windows, I want to capture the screenshot of the one which is running in the background.

for i in `xprop -root|grep "_NET_CLIENT_LIST_STACKING(WINDOW): window id" |tr '#' ','|tr ',' '\
'| grep 0x`;do xwininfo -id $i|grep "Window id" ;done

Using the above I was able to get the windows id. and using


xwininfo

able to find the label or name or title of the window.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 0aa56af00223a7f9f5dec349aeace335