I know how to minimize/hide all windows in Cosmic Cuttlefish/GNOME Shell using SUPER+D, but I would like to be able to quickly minimize only all windows for a single application (say the one that currently has cursor focus). For example, I would like to minimize all LibreOffice documents, or all Terminal windows.
I am not quite seeing or recognizing a way to do this in Settings > Devices > Keyboard. Is this possible?
This is not a keyboard shortcut, but another way to minimise all windows of an application. You can enable 'minimise on click' in Ubuntu dock. Then once you click an application icon in the dock, it would minimise all windows (or raise, if they're already minimised) of that application.
To enable this option, run the following command in Terminal:
(Reference: How do I enable 'minimize on click' on Ubuntu dock in Ubuntu 17.10 and later?)
OK, just a quick one for fun :)
###Minimize windows of currently active application You could use a stripped-down/edited version of this script, which comes with a default Ubuntu Budgie install. While the original script toggles the desktop, the edited one below minimizes all windows, on current workspace, of the currently active
WM_CLASS
.###The script, how to use
Make sure you have both
xdotool
andwmctrl
installed:Copy the script below into an empty file, save it as
minimize_current.py
Create a keyboard shortcut to run the script and you're done :). Use the command:
###The script
###Note Note that neither
xdotool
norwmctrl
, as used in this script, will work on Wayland.