Last week we explained how you can use a simple Terminal command to insert spaces in your macOS Dock and visibly group together app icons. In this article, we're going to highlight another simple Terminal hack that turns the Dock into more of a straightforward app switcher by making it display only apps that are currently running on your Mac.

macos dock only open apps
Seeing only active apps at the bottom of your desktop can be a refreshing change if your Dock has become cluttered with various app shortcuts over time, and you can always use Spotlight (key combination Command-Space to activate) or an alternative method to launch your Mac apps.

When following the simple steps below, just bear in mind that Terminal is a powerful app, so make sure you enter the commands properly, especially if you're not familiar with it.

How to Show Only Active Apps in Your Dock

  1. Launch the Terminal app found in Applications/Utilities. (To quickly open the Utilities folder in Finder, select Go -> Utilities from the menu bar, or use the key shortcut Shift-Command-U.)

  2. At the Terminal prompt, type the following command and press Enter: defaults write com.apple.dock static-only -bool true; killall Dock
    recent apps only dock Terminal command

  3. Your Dock will reboot in order to show only the currently running apps on your Mac in the order they were launched.
    mac dock only active apps

How to Revert the Dock Back to Its Original State

If you decide you don't like this way of using the Dock, follow the steps below to return it to its usual behavior.

  1. Launch the Terminal app again if it's not already open.

  2. At the Terminal prompt, type the following command and press Enter: defaults write com.apple.dock static-only -bool false; killall Dock

  3. Your Dock will reboot and revert to showing both running and non-running apps.

If there's a specific active app that you'd like to hide from the Dock for whatever reason, there are a couple of third-party utilities that might help. Dock Dodger is a free drag-and-drop tool that can hide certain apps from the Dock even when they're running (once placed on the tool's droplet, you have to restart the app in question to hide it, although our success rate varied depending on the app). If you're willing to open your wallet, GhostTile is a more recent and reliable paid-for alternative with similar functionality.

Top Rated Comments

sunapple Avatar
92 months ago
What’s the difference with removing all apps from the Dock and opening new ones from another place?
Score: 3 Votes (Like | Disagree)
frou Avatar
92 months ago
For the longest time, I have simply dragged all of the default app "shortcuts" off of my Dock, and used Spotlight via the keyboard to launch everything.
Score: 3 Votes (Like | Disagree)
sp3k0psv3t Avatar
92 months ago
This is nice. Really cleans things up a bit since I have a gazillion apps in my dock lol.

Thanks for the tutorial.
Score: 2 Votes (Like | Disagree)
Amazing Iceman Avatar
92 months ago
I hardly use the dock to launch apps. Using [COMMAND] [SPACE] and typing the app name to launch it is a faster approach.
Score: 2 Votes (Like | Disagree)
sirozha Avatar
92 months ago
I don't get this tip.

After I implemented this command, I was able to right-click on the icons of the running apps and select "Keep in Dock". After that, when I closed the apps, their icons remained on the Dock. So, how is this different from just dragging all your icons off the dock one at a time?
Score: 2 Votes (Like | Disagree)
chabig Avatar
92 months ago
Just apply the technique and then add the download folder manually (drag it to the dock).
Score: 1 Votes (Like | Disagree)

Popular Stories

CarPlay Hero

Apple Releases Wireless CarPlay Fix

Wednesday April 16, 2025 11:28 am PDT by
If you have been experiencing issues with wireless CarPlay in your vehicle lately, it was likely due to a software bug that has now been fixed. Apple released iOS 18.4.1 today, and the update's release notes say it "addresses a rare issue that prevents wireless CarPlay connection in certain vehicles." If wireless CarPlay was acting up for you, updating your iPhone to iOS 18.4.1 should...
Beyond iPhone 13 Better Triad

Apple's 20th Anniversary iPhone May Finally Go All Screen

Tuesday April 15, 2025 6:31 am PDT by
Apple is preparing a "bold" new iPhone Pro model for the iPhone's 20th anniversary in 2027, according to Bloomberg's Mark Gurman. As part of what's being described as a "major shake-up," Apple is said to be developing a design that makes more extensive use of glass – and this could point directly to the display itself. Here's the case for Apple releasing a truly all-screen iPhone with no...
iOS 19 Roundup Feature

iOS 19 Will Add These New Features to Your iPhone

Tuesday April 15, 2025 7:37 am PDT by
The first iOS 19 beta is less than two months away, and there are already a handful of new features that are expected with the update. Apple should release the first iOS 19 beta to developers immediately following the WWDC 2025 keynote, which is scheduled for Monday, June 9. Following beta testing, the update should be released to the general public in September. Below, we recap the key...
maxresdefault

iPhone 17 Pro Launching Later This Year With These 12 New Features

Sunday April 13, 2025 7:52 am PDT by
While the iPhone 17 Pro and iPhone 17 Pro Max are not expected to launch until September, there are already plenty of rumors about the devices. Subscribe to the MacRumors YouTube channel for more videos. Below, we recap key changes rumored for the iPhone 17 Pro models as of April 2025: Aluminum frame: iPhone 17 Pro models are rumored to have an aluminum frame, whereas the iPhone 15 Pro and ...
iphone 16 pro models 1

17 Reasons to Wait for the iPhone 17

Thursday April 17, 2025 4:12 am PDT by
Apple's iPhone development roadmap runs several years into the future and the company is continually working with suppliers on several successive iPhone models simultaneously, which is why we often get rumored features months ahead of launch. The iPhone 17 series is no different, and we already have a good idea of what to expect from Apple's 2025 smartphone lineup. If you skipped the iPhone...
AirPods Pro 3 Mock Feature

AirPods Pro 3 Just Months Away – Here's What We Know

Friday April 18, 2025 5:16 am PDT by
Despite being more than two years old, Apple's AirPods Pro 2 still dominate the premium wireless‑earbud space, thanks to a potent mix of top‑tier audio, class‑leading noise cancellation, and Apple's habit of delivering major new features through software updates. With AirPods Pro 3 widely expected to arrive in 2025, prospective buyers now face a familiar dilemma: snap up the proven...
iOS 18

Apple Releases iOS 18.4.1 With Bug Fixes

Wednesday April 16, 2025 10:11 am PDT by
Apple today released iOS 18.4.1 and iPadOS 18.4.1, minor updates to the iOS 18 and iPadOS 18 operating systems that came out last September. iOS 18.4.1 and iPadOS 18.4.1 come two weeks after the launch of iOS 18.4 and iPadOS 18.4. The new software can be downloaded on eligible iPhones and iPads over-the-air by going to Settings > General > Software Update. There have been complaints about ...
tvOS 18 Thumb 1

Apple Releases tvOS 18.4.1

Wednesday April 16, 2025 10:04 am PDT by
Apple today released tvOS 18.4.1, a minor update to the tvOS 18 operating system that came out last September. tvOS 18.4.1 comes two weeks after Apple released tvOS 18.4, and it is available for the Apple TV 4K and Apple TV HD models. tvOS 18.4.1 can be downloaded using the Settings app on the ‌Apple TV‌. Open up Settings and go to System > Software Update to get the new software....
iPhone Security Feature 25

Five iPhone Security Features You Should Be Using

Wednesday April 16, 2025 4:15 pm PDT by
Apple has quite a few security features that it's added to iPhones, iPads, and Macs over the years. Now more than ever, it's important to make sure you're taking advantage of the built-in security tools that are available to keep yourself and your data safe, so we've rounded up a list of the most important options. If you don't already have these enabled, you might want to consider turning...