Show Desktop (technical)

Super+D as on Windows: minimizes the open windows of the current workspace. The next press brings them back and focuses the window you were in. User overview: show-desktop/README.md.

How it works

Installed files

./install.sh show-desktop sets up:

Path What
~/.local/lib/show-desktop Link to show-desktop/ in the repo checkout
~/.local/bin/show-desktop Wrapper that runs show-desktop.py with python3 -I
~/.config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom Super+D entry, added only if no entry mentions show-desktop yet
~/.local/state/show-desktop/last.json Windows the last press minimized (written at run time)

./install.sh --uninstall show-desktop removes the wrapper, the link and the Super+D entry (other custom shortcuts are kept). The state folder is kept.

Commands

show-desktop                                       # what Super+D runs
python3 -m unittest discover -s show-desktop -v    # tests, no Wayland needed

Configuration

None. To change the key, edit the custom shortcut in COSMIC Settings (keyboard shortcuts).

Limits