Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

Thanks!

share|improve this question
add comment

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.

2 Answers

Super-D will minimize/restore all windows.

http://www.ubuntugeek.com/list-of-ubuntu-unity-keyboard-shortcuts.html

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
1  
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
add comment

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
add comment

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