How to Get Your Mac's Dock to Show Running Apps Only

by

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
35 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
35 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
35 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
35 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
35 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
35 months ago
Just apply the technique and then add the download folder manually (drag it to the dock).
Score: 1 Votes (Like | Disagree)

Top Stories

windows 10

Developer Successfully Virtualizes Windows for Arm on M1 Mac

Friday November 27, 2020 7:16 am PST by
Developer Alexander Graf has successfully virtualized the Arm version of Windows on an M1 Mac, proving that the M1 chip is capable of running Microsoft's operating system (via The 8-Bit). Currently, Macs with the M1 chip do not support Windows and there is no Boot Camp feature as there is on Intel Macs, but support for Windows is a feature that many users would like to see. Using the...
iPhone black friday 20 sale feature

Apple Black Friday 2020: Best iPhone Deals

Friday November 27, 2020 12:56 pm PST by
Black Friday is halfway done, but there are still a few deals to shop for on iPhones at carriers like AT&T, Verizon, and T-Mobile/Sprint. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive a small payment, which helps us keep the site running. AT&T Starting with AT&T, you'll find up to $700 off any iPhone 12 when...
AirPods Pro black friday 20 sale feature 2

Black Friday 2020: AirPods Pro Reach Lowest Price Ever [Updated]

Wednesday November 25, 2020 3:22 pm PST by
Black Friday has kicked off this week, and one of the first major sales for the AirPods Pro is available right now on Walmart. You can find this deal below, along with a few other solid discounts on the regular AirPods. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive a small payment, which helps us keep the site...
Apple Watc black friday 20 sale feature

Apple Black Friday 2020: Best Apple Watch Deals [Updated]

Wednesday November 25, 2020 4:01 pm PST by
Black Friday sales have begun on a variety of products, including the Apple Watch. There are quite a few deals across the Apple Watch lineup this year, including one of the lowest price we've ever seen the Apple Watch Series 3. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive a small payment, which helps us keep the...
iphone trade in store

UK Environmental Committee Says Apple Contributing to 'Throwaway Culture' of 'Short-Lived Products'

Thursday November 26, 2020 7:07 am PST by
Technology companies like Apple are contributing to e-waste by making their products difficult to repair, and charging expensive repair fees, according to a lengthy report published today by the UK Parliament's Environmental Audit Committee. "We were told that Apple glues and solders parts together on their laptops, which makes repairing them very difficult," the Committee wrote in a summary ...
MacBooks black friday

Apple Black Friday 2020: Best Mac and MacBook Deals

Thursday November 26, 2020 8:29 pm PST by
For Black Friday 2020, many retailers have solid deals on a variety of Macs. Apple's new M1 Macs are ones everyone wants right now, but because they're so new, deals on them are fairly sparse, although we are seeing some modest discounts. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive a small payment, which helps...
Top Stories 38 Feature

Top Stories: Black Friday Deals, Redesigned MacBooks, Hands-On With Apple's M1 Macs

Saturday November 28, 2020 6:00 am PST by
With Apple's holiday hardware lineup seemingly all set, attention this week turned to the shopping end of things with Apple and other retailers rolling out their Black Friday deals. That wasn't the only news this week, however, as we've continued to learn more about Apple's new M1-based Macs and we've even heard some fresh rumors about redesigned Mac notebooks coming next year, so read on...
General black friday 20 sale feature 2

Apple Black Friday 2020: Our Top Picks

Friday November 27, 2020 6:16 am PST by
Black Friday shopping has officially kicked off across the United States, and we've been collecting the best deals for Apple's iPads, Macs, AirPods, the HomePod, Apple Watch, and more in separate articles. In order to further streamline your Black Friday shopping this year, we've put together this quick list of our top picks of the overall best Apple-related bargains happening today. Note:...
mac mini macbook pro macbook air

Apple M1 Hands-On Comparison: MacBook Air vs. MacBook Pro vs. Mac Mini

Monday November 23, 2020 3:40 pm PST by
Apple's M1 Macs are out in the wild now, but ahead of the holidays, you might still be trying to figure out which one to pick up, either for yourself or as a gift for someone else. We've got all three of the new Macs available, so we thought we'd give MacRumors readers a hands-on overview of each machine in our latest YouTube video. Subscribe to the MacRumors YouTube channel for more videos. ...
General black friday 20 sale feature

Thanksgiving Day Deals Still Available on AirPods, M1 Macs, Apple Watch Series 6, iPads

Thursday November 26, 2020 10:21 am PST by
Black Friday deals seem to start earlier and earlier every year, so there were already a wide variety of discounts available for Apple products on Thanksgiving Day. Many of the deals remain available even after Thanksgiving, but act fast, as inventory quickly fluctuates. Thanksgiving Day Deals on Apple Products — Still Available:AirPods with a wireless charging case remain available for...