I don't know if this is a feature or a bug, but clicking on an active application's launcher icon doesn't minimize it. It is terribly inconvenient for folks using a persistent Unity bar to click minimize button every time. Is there any way to add minimize functionality to the launchers?

link|improve this question
feedback

9 Answers

up vote 17 down vote accepted

Because Mark Shuttlewoth decided it, at least for now?:

no, clicking on the icon will not minimise the app. We have a minimise button for that, it's prominent.

But at least, that bug has now the status opinion which means the develeopers won't fix it for now, but wait for community discussion.

So if you would like minimize on click, too, make a clear statement at launchpad.

link|improve this answer
2  
Same here, I agree with the fact that clicking on the icon should maximize/minimize it. THAT is intuitive since most people will feel comfortable doing it like that. Not only will it save problems like this for adjusting to something different but will make the minimize/maximize buttons in the windows mute. So they can remove them and substitute them for others buttons. – Luis Alvarado Oct 28 '11 at 2:58
The bug has been officially rejected by the Ubuntu overlords. See here: bugs.launchpad.net/ayatana-design/+bug/733349 – HDave Feb 25 at 20:42
feedback

There is quite a heated debate about this missing feature on launchpad:

https://bugs.launchpad.net/ayatana-design/+bug/733349

In response to the expose mode for multiple windows, this can be easily adapted for with a second click to minimize all windows as there is currently no further function for that extra click in launcher.

If you want to minimize all the application's windows, I do not think there is an easy way currently so this functionality would help in that instance too.

link|improve this answer
1  
The keyboard shortcut Super+D is a quick way to show the Desktop (minimize all windows) – fluteflute Apr 24 '11 at 8:15
Thanks, I was aware of that shortcut but I was talking about the multiple windows for a single application. – Cas Apr 24 '11 at 12:58
feedback

I've made a script to workaround this issue.
See this working here.

Instructions

  1. You will need Xdotool Install xdotool and Compiz Config Settings Manager Install compizconfig-settings-manager from the Ubuntu Software Center

  2. Create a new file named '.minimize' in your home folder (gedit ~/.minimize). Copy & Paste the following text into it and save:

    #!/usr/bin/env python
    # by desgua
    # version 0.1.3 - May 06 2011
    # To minimize with unity Launcher
    ##################################
    import os
    import wnck
    import gtk
    stream = os.popen("xdotool click --clearmodifiers 1")
    screen = wnck.screen_get_default()
    
    while gtk.events_pending():
        gtk.main_iteration()
    
    windows = screen.get_windows()
    active_app = screen.get_active_window().get_application()
    
    for w in windows:
        if w.get_application() == active_app:
            w.minimize()
    
  3. Make the script executable: (More Info)

    chmod +x ~/.minimize
    
  4. Open Compiz Config

    Use Run Command, Alt + F2, and type ccsm

  5. Enable 'Commands' plugin then add the above script ~/.minimize to one of the empty command lines.

    compiz

  6. Change to Button Binding tab and make a button shortcut for the corresponding command line number above.

    The screenshot example is using Alt + Button1 which corresponds to Mouse left click with the Alt button held down.

    compiz2

  7. Enjoy! ;-)

UPDATE: You can do this without a script, as Unity has a built in keyboard shortcut to minimize the window. By default it's now Ctrl-Alt-0 (Refer to Settings -> Keyboard, (NOT Keyboard Layout, that's different (and confusing)). Note that this means the NUMERIC KEYPAD zero key, and that the regular zero key will NOT work. (Should probably be corrected) Then with xdotool you just add a command 'xdotool key Ctrl+Alt+KP_Insert' (Yes, it's the numeric keypad zero, which xdotool knows as 'KP_Insert') and assign it anywhere you like. You can even add it to an app's quick-list (Using MyUnity to define the quick list entry).

link|improve this answer
bash scripts should not have an extension if they are to be executed and certainly not 'sh'. see my other post – Cas May 4 '11 at 0:10
1  
Improved again. Now it can minimize all windows from the same app ;-) – desgua May 7 '11 at 0:46
@Cas thank you very much for the "instructions rework" ;-) – desgua May 11 '11 at 11:21
feedback

This is just a workaround for the real problem, but there is a keyboard shortcut for minimizing windows, Alt + F9

It only closes the active window though and not all windows of an application.

This one and many other keyboard shortcuts are, however, configurable through the keyboard shortcuts application gnome-keybinding-properties. It is part of the system settings application that can be launched via the logout menu on the far right side of the panel.

I use this, for example, to be able to lock the screen via the pause button on my keyboard.

link|improve this answer
That's not really a workaround. What he wants to do, is to not click on the minimize button to minimize windows, but to click on the launch button to make the window disappear. He's wondering why that isn't possible. – Jo-Erlend Schinstad Oct 18 '11 at 11:51
feedback

Clicking on a launcher icon of a running app displays the windows of that app in exposé mode, provided there's more than one window. So either that functionality would have to go in favor of the minimizing, or minimizing by clicking the launcher button would only work if the app does not have more than one window. The latter would be two functionalities for the same action, so I don't think that's gonna happen.

link|improve this answer
I like the expose mode, but minimize for single instance windows doesn't seem to work. I hope they fix that asap – Eternal Owl Apr 22 '11 at 14:55
It does not "not work", it is not supposed to work. There is no such feature. At least AFAIK. That's what I said in my answer, and I gave some reasons as to why that might be. ;) – nem75 Apr 22 '11 at 16:50
Not gonna happen? Why not? DockbarX allows you to do that same thing... Futhermore, compiz 0.9 is SUPPOSED to support showing minimized window thumbnails. Why would it be so hard? – Roland Taylor Apr 24 '11 at 1:01
2  
Exposé and minimize could exist together: Now, when in exposé mode, clicking on the launcher icon does nothing. Instead, that next click could minimize all windows from this application. And the next click could expose windows from this application on this workspace and so on, just cycle around. – tobi Apr 24 '11 at 6:40
Yes, minimizing is perfectly working in Win7 :) – Extender May 4 '11 at 5:37
show 1 more comment
feedback
  • alt+f9 - minimize current
  • alt+ctrl+d- minimize all
  • alt+ctrl+d- reopen minimized

I think, this is default behaviour, so there is no need for another scripts or modifications.

link|improve this answer
It's incredible to me that I have to memorize all these keyboard shortcuts to use Unity. In 18 years of working with desktop windowing environments, I've never seen something this hard to use. Welcome to the 1970s! – HDave Feb 25 at 20:46
feedback

There is an experimental patch for 12.04 that enables this behaviour. It is for testing purposes only.

Since it wasn't even considered adding minimize on click as an option, Jonathan French has created a PPA with the minimize on click patch.

https://launchpad.net/~ojno/+archive/unity-minimize-on-click

Installation:

sudo add-apt-repository ppa:ojno/unity-minimize-on-click
sudo apt-get update
sudo apt-get upgrade

Removal:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:ojno/unity-minimize-on-click

Please read the Web Upd8 article on the subject for more information.


Update:

There is now support available for 11.10 in the same PPA.

Excerpt from Package changes file:

Version: 4.28.0-0ubuntu2+ojno3
Distribution: oneiric

Changes: 
 unity (4.28.0-0ubuntu2+ojno3) oneiric; urgency=low
   * Apply minimize on click patch

Source: Web Upd8

link|improve this answer
I don't know how safe this is, because it replaces the original unity-package. But it works great! – Jakob Mar 26 at 11:39
I'd say it is experimental. For testing purposes only. – lgarzo Mar 26 at 11:40
feedback

I'm currently complementing my Unity launcher with a gnome-panel, this gives me the minimize behavior I want. It seems absurd, but the space in the top center of the screen is wasted otherwise anyway.

When you login to unity in 11.10, you can simply start gnome-panel (if you installed it via apt-get). I found it difficult to configure that panel initially so I logged out and then into the gnome classic session where I configured it to not expand and removed all the applets until I was left with just a panel with a window list. Then I used Ctrl + Alt + Delete to logout and log back into the Ubuntu/Unity session.

I found that adding the gnome-panel directly to the Startup Applications list caused it to land behind the Unity bar at the top so I added this instead: bash -c "/bin/sleep 2 && /usr/bin/gnome-panel&".

Edit: It looks like there are some bugs in the way gnome and unity interact. But making the panel auto-hide seems to work ok.

link|improve this answer
feedback

To change back (Oneiric 11.x): Shutdown button -> System Preferences -> Keyboard -> Shortcuts -> Navigation -> Hide Normal Windows (instructions for changing the shortcut are at the bottom of the settings window).

Hope this helps someone because it really annoyed me for a while (mainly due to name being changed to "Hide Normal Windows").

link|improve this answer
feedback

protected by Community Jan 29 at 19:44

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

Not the answer you're looking for? Browse other questions tagged or ask your own question.