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
85 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
85 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
85 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
85 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
85 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
85 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

ipad mini 2021 youtube

New Report Reveals When to Expect the iPad Mini 7

Tuesday October 1, 2024 2:09 pm PDT by
Apple is working on a new iPad mini that will "potentially" be released "by the end of 2024," according to a report today from Bloomberg's Mark Gurman. Last month, Gurman reported that Apple had "new iPads in the works," including an upgraded version of the iPad mini. At the time, he said the device was "on deck for Apple's October event" alongside the first M4 Macs. The wording in his...
airpods pro 2 gradient

AirPods Pro 3 Expected Next Year: Here's What We Know

Tuesday October 1, 2024 5:47 am PDT by
Despite being released over two years ago, Apple's AirPods Pro 2 continue to dominate the wireless earbud market. However, with the AirPods Pro 3 expected to launch sometime in 2025, anyone thinking of buying Apple's premium earbuds may be wondering if the next generation is worth holding out for. Apart from their audio and noise-canceling performance, which are generally regarded as...
apple silicon mac lineup wwdc 2022 feature purple

MacBook Pro, iMac, and Redesigned Mac Mini With M4 Chips on Track to Launch 'This Year'

Tuesday October 1, 2024 1:57 pm PDT by
Apple plans to release new MacBook Pro, iMac, and Mac mini models with the M4 series of chips "this year," according to Bloomberg's Mark Gurman. Gurman initially said these Macs would likely be announced during a virtual event this October, but he has been more vague about the timing lately, with wording such as "in the coming weeks" and now merely "this year." In any case, it is clear that...
15 New Things Your iPhone Can Do in iOS 18

15 New Things Your iPhone Can Do in iOS 18.1

Friday September 27, 2024 6:14 am PDT by
Apple is set to release iOS 18.1 in October, bringing the first set of Apple Intelligence features to iPhone 15 Pro and iPhone 16 models. This update marks a significant step forward in Apple's AI integration, offering a new Siri contextually-aware experience and a range of additional capabilities powered by on-device machine learning and large language models. There are a couple of handy new...
iPhone SE 4 Thumb 2

Apple's Next New iPhone to Debut in the Spring: What to Expect

Tuesday October 1, 2024 3:14 am PDT by
Apple's budget-friendly iPhone SE is set for a major overhaul with a fourth generation model expected to launch in spring 2025. The upcoming model will mark a significant departure from its predecessors, adopting several features from higher-end iPhones while maintaining its position as the most affordable new model in Apple's lineup. According to recent reports, the iPhone SE 4 will sport a ...
iPhone SE 4 Thumb 1

iPhone SE With Apple Intelligence, New iPad Air, and More Reportedly Launching 'Early Next Year'

Tuesday October 1, 2024 12:38 pm PDT by
Apple plans to release a new iPhone SE with Apple Intelligence support, new iPad Air models, and an updated Magic Keyboard for the iPad Air at some point "early next year," according to a report today from Bloomberg's Mark Gurman. The next iPhone SE will have a similar design as the iPhone 14, including an edge-to-edge screen with a notch, according to Gurman. This means the device will...
m3 mbp space black

What to Expect From an Apple Event in October: iPad Mini 7, Redesigned Mac Mini, and More

Friday September 27, 2024 11:47 am PDT by
Apple will likely hold another event in October this year to announce new Macs and iPads. If so, it would be the fourth time in the last five years that Apple has held an event in October. Last year, Apple held a virtual event on Monday, October 30 to announce new MacBook Pro and iMac models with the M3 series of chips. Subscribe to the MacRumors YouTube channel for more videos. Below, we...
Generic iOS 18

iOS 18.0.1 Coming Soon: What to Expect for Your iPhone

Wednesday October 2, 2024 5:50 am PDT by
Following the release of iOS 18 for the iPhone last month, Apple is preparing to release iOS 18.0.1 with bug fixes in the near future. We previously reported that Apple has been internally testing iOS 18.0.1, and today a private account on X with a proven track record of sharing iOS-related information said the update will have a build number of 22A3370. We expect iOS 18.0.1 to be a minor ...