Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sometimes I want to bring all the windows of one application to the top. It seems that the only way to do this in Unity currently is to switch to each window individually (either by using alt-tab, clicking on the launcher icon and selecting each window, or minimizing all other windows). I'm guessing it's possible to hack something together using wmctrl to do this but I'm hoping for a simpler solution.

share|improve this question
In case you don't have any anwser.. Here's what I use: (focus windows based on active window, keybinded), and (called with part of application name as argument, ie fc nau for nautilus .. ). – user55822 Jul 30 '12 at 8:40

You can use wmctrl for this:

There is a shortcut for all windows, e.g. if you just want to undo going to the desktop:

wmctrl -k off

If you really need to bring up just a specific app, you can use a script, as follows, but it will bring up all windows on all workspaces. E.g. to bring up all gnome-terminals, you could do

pids=" $(pidof gnome-terminal) "; wmctrl -lp | while read id a pid b; do test "${pids/ $pid }" != "$pids" && wmctrl -i -a $id; done
share|improve this answer

If you just need to find all the windows of an application (with a preview of the contents in each) then click the app's icon twice in the launcher bar. The first time you click it will make the most recent window of the app active and the second time it will give you a preview of all the app's windows. That isn't technically the same as "bringing them to the top" but might meet the actual need you have (to find all the open email windows for example).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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