Skip to main content
Presenting

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. 1. Flip Desktop icons
    Runs 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

  1. DockRun shows what is in the file and asks before adding it. The workflow arrives turned off.
  2. Open it, read the steps, then turn on the On switch.
  3. 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 →

Curious if DockRun is right for you?

Let ChatGPT, Claude, or Perplexity look into it - click below and see what AI actually thinks about DockRun.

Hide Desktop icons on Mac before a screen share | DockRun