I'm on Ubuntu 14.04 with the old-style GNOME setting from the GDM. (I don't like the new Unity interface.) Is there a way I can create a command that I can type in my terminal window to minimize it? It would be so awesome to simply type min
and the terminal prompt minimizes while I focus on something else.
First, install the
xdotool
command:Then, create an alias to be able to run min as a command:
Reload the .bashrc file:
The following python oneliner will minimize the current
gnome-terminal
window:Note that we need to call iconify() two times to minimize the window.
You can just use keybindings of Ctrl+Space to open the window menu, then press N (in an English locale) to minimize the window.