What you can do, if your window manager has a key binding (eg F3
) or mouse button to lower a window, is use xdotool to find the window, move the mouse into it, send the key sequence, and restore the mouse position.
wid=$(xdotool search --name 'Firefox') xdotool windowactivate $wid xdotool mousemove --window $wid 10 10 key F3 mousemove restore