Hide and Show Mac Desktop Icons With a Hotkey
In this article
You can hide and show all of your Mac desktop icons with a hotkey, but macOS does not include a built-in keyboard shortcut for this. The most reliable way is to use a free, open-source utility like HiddenMe or Desktop Curtain, or a paid app such as CleanShot X, which lets you assign a custom hotkey to toggle desktop icon visibility. This article explains why the feature isn't native, how to set it up, and what to do if you run into problems.
Why macOS Doesn't Have a Built-In Hotkey
Apple has never provided a system-level shortcut to toggle desktop icons. The Finder, which manages the desktop, has a menu command to hide icons, but it's buried and not assigned a key. In macOS Ventura and later, you can right-click the desktop, choose Use Stacks or Clean Up, but there's no option to hide all icons. This is likely because Apple expects users to keep their desktop tidy with Stacks, or simply because the feature hasn't been prioritized. As a result, third-party utilities fill the gap.
How the Hotkey Works in Third-Party Apps
These utilities work by manipulating the Finder's internal setting that controls icon visibility. When you press your assigned hotkey, the app executes a command that sets the desktop icon visibility to off, and pressing it again turns it back on. Most apps use AppleScript or a private API to achieve this, and they typically require Accessibility permissions to control the Finder. The hotkey is usually a combination like Cmd+Shift+H, but you can customize it to any key combo that doesn't conflict with existing shortcuts.
Choosing a Tool: Free vs. Paid
There are several options, each with different trade-offs. Here's a quick comparison:
- HiddenMe (free, open-source): A tiny menu bar app that toggles desktop icons with a single click or a customizable hotkey. It's lightweight and does exactly one thing.
- Desktop Curtain (free): Not only hides icons but also covers the desktop with a solid color or wallpaper, which can prevent accidental clicks. It offers hotkey support.
- CleanShot X (paid): A comprehensive screenshot tool that includes a "Hide Desktop Icons" feature with a hotkey. It's overkill if you only need the icon toggle, but useful if you also need screenshots.
- One Switch (paid): A menu bar app that includes a "Hide Desktop" toggle, among many other system toggles. It's a good choice if you want a multi-purpose utility.
For most users, a free tool like HiddenMe is sufficient. If you want more control or additional features, consider a paid app.
How to Set Up a Hotkey with HiddenMe
Here's a step-by-step guide using HiddenMe as an example:
- Download HiddenMe from its official GitHub page or the Mac App Store (if available).
- Open the app; it will appear as a small icon in the menu bar (top-right).
- Click the menu bar icon and select Preferences (or right-click and choose Preferences).
- In the Preferences window, find the "Hotkey" section. Click the field and press the key combination you want to use (e.g., Cmd+Shift+H).
- Close Preferences. The hotkey is now active. Press it to hide desktop icons; press it again to show them.
Note: The first time you use the hotkey, macOS may ask for Accessibility permission. Go to System Settings > Privacy & Security > Accessibility and enable the app.
Common Problems and Fixes
If the hotkey doesn't work, try these troubleshooting steps:
- Accessibility permission not granted: The app needs to control the Finder. Check System Settings > Privacy & Security > Accessibility and ensure the app is toggled on.
- Hotkey conflict: Another app may be using the same key combo. Try a different combination, like Cmd+Option+H.
- App not running: Some utilities quit after a restart. Make sure the app is running (check the menu bar) and set it to launch at login if you want it persistent.
- macOS version issues: Some older apps may not work on the latest macOS. Check the app's documentation for compatibility. For macOS Sonoma and later, most current apps are updated.
Alternatives to a Hotkey
If you prefer not to install third-party software, there are other ways to hide desktop icons:
- Use Terminal: Run the command
defaults write com.apple.finder CreateDesktop -bool falseand then restart Finder withkillall Finder. To show them again, changefalsetotrue. This is not a hotkey, but it's a built-in method. - Create a Shortcut with Automator or Shortcuts: You can create a service that runs the Terminal command and assign it a keyboard shortcut in System Settings > Keyboard > Shortcuts. This is more complex but uses only built-in tools.
- Use Stacks: While not hiding icons, Stacks groups them neatly, which can reduce clutter. Right-click the desktop and choose Use Stacks.
Safety and Privacy Considerations
Hiding desktop icons doesn't delete or move any files; it only changes their visibility. Your files remain in the Desktop folder, and you can access them via Finder. This is useful for taking clean screenshots or reducing distractions. However, be aware that some utilities may request Accessibility permission, which gives them control over your system. Only install apps from reputable sources, and review the permissions they request. Open-source tools like HiddenMe are generally safe, but always check the source code or community reviews.
Frequently Asked Questions
Will hiding desktop icons affect my files?
No, hiding icons only hides them from view. Your files remain intact in the Desktop folder, and you can still access them through Finder or by pressing the hotkey again to show them.
Can I hide icons on just one desktop (Space) or all?
Most utilities hide icons on all desktops simultaneously, because the desktop is a single Finder view. There is no built-in way to hide icons on only one Space. Some advanced apps might offer per-Space settings, but it's rare.
Is there a way to do this without installing anything?
Yes, you can use the Terminal command mentioned above, or create an Automator service. However, neither provides a simple hotkey toggle without some setup. If you want a one-key solution, a third-party app is the easiest route.
Will the hotkey work after I restart my Mac?
It depends on the app. Most menu bar utilities need to be running for the hotkey to work. If the app doesn't launch at login, you'll need to open it manually after restarting. You can enable "Open at Login" in the app's preferences or in System Settings > General > Login Items.
Can I use a function key (like F13) as the hotkey?
Yes, most apps allow you to use any key, including function keys. However, some function keys are already assigned to system functions (like volume or brightness). If you use a function key, you may need to press the Fn key as well, or change the system behavior in Keyboard settings.