Scott Whittaker

Software Engineer

Day job React | side projects Svelte

Show or Hide Desktop on OSX

Useful tip found here allowing you to hide all the icons on the desktop from the command line.

# Desktop
# -----------------------------------------------------
alias hide-desktop="defaults write CreateDesktop false; killall Finder"
alias show-desktop="defaults write CreateDesktop true; killall Finder"

You could of course just not put any files in the desktop folder but then where do you put all that old stuff you don’t care about but are afraid to delete? Hiding them makes me feel better.