Is there a keybind to minimize all windows, without a toggle?
Solution 1
This person found a way to do what you are looking for: http://www.cs.bgu.ac.il/~gwiener/linux/minimizing-all-windows-in-gnome/
-
First install
devilspie
sudo apt-get install devilspie
-
Then create a file called
minimize.ds
in your home folder. In that file put the following:(begin (minimize) (quit))
Test it out by running:
devilspie minimize.ds
-
If it works as it should then add a shortcut: System ➜ Preferences ➜ Keyboard Shortcuts.
Click on the Add button and fill in the fields as shown below, replacing
YOURUSERNAME
with your actual username.And finally double-click where it says Disabled and press your shortcut keys.
Solution 2
It can be found in System--->Preferences--->Keyboard shortcuts
Solution 3
Ctrl+Alt+D
? You can set it in Gnome System->Preferences
Solution 4
Try using wmctrl.
sudo apt-get install wmctrl
Then, create a new custom shortcut that executes the following command.
wmctrl -k on
This should do what you are looking for.
Related videos on Youtube
Bemmu
Updated on September 17, 2022Comments
-
Bemmu over 1 year
I know about the show desktop keybind (default Ctrl+Alt+D), which I use often enough. However, I'm looking for a way to minimize all windows without activating "show desktop".
I'm on a default install (i.e Gnome, Metacity & Compiz). I've looked through all the locations to configure keybinds, that I know. I've also looked at the default keybind list in the Ubuntu wiki and in the Compiz wiki. (Not to mention, searching here.)
I'm interested in knowing where it is available, if not in Gnome/Metacity/Compiz, or some other way to accomplish this with a keybind.
-
Bemmu over 13 yearsI know about that keybind and use it often enough. However, that is not what I want. Because of the way I use a GUI environment, I want a way to minimize all windows w/o it being a toggle. Here's my use case: I hit the key bind, then I bring up several windows, then sometime later I hit the keybind again. With a toggle, that's all sorts of wrong. The toggle is fine for quick access to the desktop, but that is not what I need. I need to minimize all windows without having to do it manually for each window.
-
Mussnoon over 13 yearsActually, that's "Show Desktop" rather than "Minimize all windows". And it does toggle.
-
Isaiah over 13 yearsThat just activates show desktop, which the OP does not want.
-
Bemmu over 13 years@dor Correct. However, it sort of answers the question as I asked it originally. I.e. without a toggle. Roland's edit clarified that point just after this answer was posted. So, while it is not what I want, it is getting closer. At the very least, this provides a way to minimize the windows with one keybind that doesn't toggle. The interaction between this and the show desktop toggle is odd, but barring another solution it may have to do.
-
Bemmu over 13 yearsYes! That's exactly what I want. This way, I can use both bits of functionality and they work as I expect.
-
Ramón over 13 yearsI don't see the difference between this and what DoR proposes regarding your use case in Pawel's solution, but I'm glad you found what you were looking for. Cheers.
-
Bemmu over 13 yearsBasically, using show desktop minimizes windows and remembers which windows were minimized. Those windows are restored on the next use of show desktop. (I.e. it works like a toggle) That's not the same notion as simply minimizing all windows. This way, the two keybinds don't seem to interact. That is, I can minimize all, then press show desktop and nothing happens. Using
wmctrl
would restore those windows if I then pressed show desktop. Regardless, I do appreciate the effort and you did teach me something useful. So, +1 for that. -
Ramón over 13 yearsAha, I see the difference now. Thanks for explanation.
-
Admin over 11 yearsIf you read the original question and most of the answers, they relate, not to KDE, but to GNOME.
-
Jitendra about 7 yearsThank you. I'd been struggling with the same issue in Cent OS 7. Used as suggested and it worked!
-
Vlad over 6 yearsCtrl -> Super - D worked for me