Hide Desktop icons on Mac before a screen share
A DockRun workflow that hides everything on your Desktop for a clean screen share or recording, and brings it back when you run it again.
The button needs DockRun 0.1.19 or later. On an older version, download the file, then use Settings > Restore or Import… in DockRun.
Runs in DockRun Free, which holds 2 workflows.
What it does
- Hides every icon on the Desktop the first time you run it.
- Shows them again the next time.
- Leaves the files themselves in your Desktop folder.
The steps
Read the script below before you add it. It is everything this workflow runs.
- 1. Flip Desktop iconsRuns this zsh script · Time limit: 20 seconds
# Hides the icons on your Desktop, or shows them again. Handy before a screen share or a recording. # The files themselves stay in your Desktop folder. Finder restarts to apply the change. current=$(defaults read com.apple.finder CreateDesktop 2>/dev/null) if [[ "$current" == (0|false|NO) ]]; then defaults write com.apple.finder CreateDesktop -bool true; state="shown" else defaults write com.apple.finder CreateDesktop -bool false; state="hidden" fi killall Finder echo "Desktop icons are now $state."
After you add it
- DockRun shows what is in the file and asks before adding it. The workflow arrives turned off.
- Open it, read the steps, then turn on the On switch.
- Press Run. DockRun asks before a script runs; tick "Don't ask again for this exact step" once you trust it.
Good to know
Finder restarts to apply the change, so its open windows close and reopen.
Last tested: 2026-11-12 · All workflows →