On 2017-07-30 20:04, tu...@posteo.de wrote: > $ 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). Clearly the -i parameter is for the X11 window ID. You find the ID separately (for example with xwininfo) and then use it on the command line, instead of the xdotool incantation. -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. Do obvious transformation on domain to reply privately _only_ on Usenet.