On 30/07/17 21:04, tu...@posteo.de wrote:
Hi,

I am shootin around the screen...experimenting...

 From here:
https://github.com/naelstrof/maim

I found this:

     "This is a basic, but useful command that simply screenshots the current 
active window.
      $ maim -i $(xdotool getactivewindow) ~/mypicture.jpg
     "

Giving this via commandline it always shoots the terminal window (I
see no way to edit a commandline without activateing the terminal
window).

Have you tried introducing a delay to give you time to switch to the window you want to screenshot? Like:

  $ sleep 2; maim -i $(xdotool getactivewindow) ~/mypicture.jpg

This will give you 2 seconds to switch to another window.


Reply via email to