I would like to be able to choose any already-open window and minimize it from the command line. Is this possible?
|
In Kubuntu 12.04 I use the following command to minimize the active window:
I suspect you may replace the |
|||||||||
|
|
to minimize the active window
works on gnome3.24 shell extension such as custom hot corner, "xdotool windowminimize $(xdotool getactivewindow)" won't. |
|||
|
|
|
Another
This searches (and waits, due to See
|
|||
|
|
|
You use xdotool. Note that the default unity shortcut key for minimizing the active window is Ctrl-Alt-0 BUT that this ONLY means the numeric keypad zero. If you type the regular zero key, the one between the 9 and the -, then it will not work. (Also not when typing it on the keyboard. Xdotool knows the numeric keypad zero key as 'KP_Insert'. So to minimize the active window, you first make sure xdotool installed, then use the command: xdotool key Ctrl+Alt+KP_Insert (Note that the key Alt-F3 mentioned in another answer will not work |
|||
|
|
|
You can kind of do this with WMCtrl. It's a tool that allows you to control the window manager from the command line. You can find it in the repositories. It's compatible with Metacity and KWin (The defaults for Gnome and Kde). You can use this command to get a list of currently open windows. This will include the window name:
Once you have the window name, you can use this command to shade a window:
I don't think minimization is supported because it's not covered by the EWMH spec, but you can do shading and maximization so it might suit your needs. |
|||
|
You could use |
|||
|
|