An Alfred workflow to toggle the visibility of desktop icons in macOS.
All of the existing workflows I found relied on typing out commands to explicitly state if you wanted to show or hide the desktop icons. I think that's silly. Instead, this workflow first looks up whether the desktop is currently hidden, and then uses that data to do the opposite. No typing out explicit commands, just use the same keyboard shortcut to toggle the desktop on and off. Easy peasy.
The suggested keyboard binding is
command + . to toggle the
visibility of the desktop. This maps
logically to the system default shortcut
to show / hide hidden files in the Finder
(command + shift + .). You
can set whatever key binding you prefer by
editing the workflow in the WordFlows
section of the Alfred preferences UI.


