Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

1 Answer 1

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

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.