Ubuntu – minimize a window from the command line

command linewindow-manager

I would like to be able to choose any already-open window and minimize it from the command line. Is this possible?

Best Answer

In Kubuntu 12.04 I use the following command to minimize the active window:

xdotool windowminimize $(xdotool getactivewindow)

I suspect you may replace the $(xdotool getactivewindow) with a string identifying any window that you need to minimize.