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

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

Possible Duplicate:
How to “show desktop” from command line?

I was wondering if there was a shell command that minimizes/maximizes all windows.

I have heard of wmctrl -k on, but the program 'wmctrl' is not a default in Ubuntu.


share|improve this question

marked as duplicate by Marco Ceppi Jan 22 '12 at 14:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Super-D will minimize/restore all windows.

share|improve this answer
Why the downvote? This answer meets your needs and is more efficient than typing out a command – Jason Oct 1 '11 at 22:52
Well, I know I can use Ctrl+Alt+D or Super+D, but I need the terminal command, I'm a developer and I need to use it in a program. – user25119 Oct 2 '11 at 15:38

wmctrl is available in the Universe repository. Run sudo apt-get install wmctrl to install it.

I'm not a developer, but if your program needs it, I think you can list it as a dependency when you package the program. This will ensure that wmctrl is installed when your program is installed.

share|improve this answer

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