Hide/Show Desktop Icons on Mac OSX

I get distracted easily, so I wrote a little script to toggle the visibility of the desktop icons on Mac OSX.

Here it is:

#!/bin/bash

CURRENT=$(defaults read com.apple.finder CreateDesktop 2>/dev/null || echo 1)

defaults write com.apple.finder CreateDesktop $((! $CURRENT))
killall Finder

Just run this script and if the icons are on your desktop, they will all disappear… if you have already hidden them, run this script to get them back.

About the Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like these