Show/Hide desktop items on MacOS
Xun Zhou

Xun Zhou @vikbert

About: Senior Software Engineer at Schwarz IT, focuses on Symfony PHP & React.js at work, makes Apps & Chrome Extensions with TypeScript, React, Svelte and Vue in spare time <https://vikbert.github.io/>

Location:
Berlin, Germany
Joined:
May 9, 2019

Show/Hide desktop items on MacOS

Publish Date: May 15 '22
11 0

I am a minimalist and I prefer to have a very clean desktop without any items. But I wanna be able to find/open the files in finder in the folder ~/Desktop.

To make it possible, I just create two aliases: deskon and deskoff.

alias deskon='defaults write com.apple.finder CreateDesktop -bool true && killall Finder'
alias deskoff='defaults write com.apple.finder CreateDesktop -bool false && killall Finder'
Enter fullscreen mode Exit fullscreen mode

deskoff

by using command deskoff, I can hide all items from desktop to have a clean desktop with only wallpaper. But the hidden files are still shown in finder app on the path ~/Desktop.

Image description

deskon

by using command deskon, I can show the items again.

Image description

Comments 0 total

    Add comment