Sub topic 10
Dock context menus, running indicators, and badges
This chapter assumes you can open System Settings, recognize the Dock's parts (covered in the Dock anatomy chapter), and can right-click on a Mac. A "right-click" here means a secondary click: a two-finger click on a trackpad, a right-button click on a mouse, or Control-click.
Every Dock icon carries three layers of information. The icon's context menu holds actions. The small indicator under the icon says whether the app is running. A badge on the icon says the app has something waiting for you. You will use all three constantly, so it is worth knowing exactly what each one tells you.
Context menus
Right-click any Dock item to open its context menu. The contents depend on what kind of item you clicked.
| Item | Typical menu entries |
|---|---|
| App that is not running | Options, Open |
| App that is running | Window titles, Options, Show All Windows, Hide, Quit |
| Folder or stack | Sort by, Display as, View content as, Open "Folder" |
| Trash | Open, Empty Trash |
| Finder | Open windows, Options, Quit is replaced by Relaunch when you hold Option |
The entries vary slightly between macOS versions and between apps. Some apps add their own commands. Music, for example, lists playback controls, and Mail lists compose actions.
The Options submenu
For an app, the Options submenu holds the entries you will use most:
- Keep in Dock adds the icon permanently, or removes it if it is already kept. A running app that is not kept appears in the Dock only until you quit it.
- Open at Login starts the app each time you log in.
- Assign To pins the app's windows to a Space: All Desktops, This Desktop, or None. This ties into Mission Control, which a later chapter covers.
- Show in Finder reveals the app file in its folder.
Window lists and quitting
When an app has open windows, their titles appear at the top of the menu. Choosing a title brings that window forward, even when the window is minimized or on another Space. Minimized windows show a small diamond beside the title.
Hold Option while the menu is open to change some commands. Quit becomes Force Quit, which ends an unresponsive app without asking it to save. Hide becomes Hide Others. Use Force Quit only when the app is frozen, because unsaved work is lost.
Folder and stack menus
A folder in the right-hand section of the Dock has different choices. Sort by orders the contents by name, date added, date modified, date created, or kind. Display as chooses between a Stack (the folder's contents in the icon) and a Folder (the generic folder icon). View content as selects Fan, Grid, List, or Automatic. Automatic picks Fan for a few items and Grid for more.
Running indicators
A small dot under an icon means the app is running. No dot means the app is not running. The dot is shown for every running app, whether or not it has open windows. Some apps keep running with all windows closed, and the dot is how you notice. Clicking the icon of such an app usually reopens a window.
The indicator is a setting. In System Settings, open Desktop & Dock and find Show indicators for open applications. If someone has turned it off, running and non-running apps look the same, which is confusing. Turn it back on.
You can read and change the same setting from Terminal. This uses the defaults approach from the later chapter on Dock settings:
defaults read com.apple.dock show-process-indicators
defaults write com.apple.dock show-process-indicators -bool true
killall DockThe first line prints 1 when indicators are on. It prints an error if the key has never been set, which means the system default applies. Restarting the Dock with killall Dock is safe. The Dock relaunches itself within a second.
Badges and attention signals
Three different signals can appear on an icon, and each has its own cause.
- A red badge with a number or symbol. The app reports a count, such as unread mail or pending updates. Mail shows the unread total. System Settings shows a badge when an update is waiting.
- A bouncing icon. The app wants your attention now, for example a dialog is waiting. The bounce stops when you switch to the app. Bouncing during launch is a separate animation, controlled by Animate opening applications.
- A progress or status overlay. Some apps draw their own overlay, such as a download percentage. This depends on the app.
Badges come from the notification system, not the Dock. To turn one off, open System Settings > Notifications, choose the app, and switch Badge app icon off. If a badge you expect is missing, check this toggle, and check that Focus mode is not suppressing the app's notifications.
Common problems
- No window titles in the menu. The app is running but has no open windows. Choose the app's File menu to make a new one, or click the icon.
- A dot on an app you quit. The app may have relaunched through Open at Login or a background helper. Check the Options submenu and Login Items.
- Keep in Dock is missing. The item is a temporary entry. Open the Options submenu while the app is running and choose Keep in Dock.
- A stuck badge. Open the app and clear the item that produces the count. If the badge persists, quit the app and reopen it. Restarting the Dock rarely helps, because the count comes from the app.
- Right-click does nothing. In System Settings under Trackpad or Mouse, check that Secondary click is enabled. Control-click works regardless.
To undo the indicator change above and return to the default, delete the key:
defaults delete com.apple.dock show-process-indicators
killall DockExercise
An app's Dock icon has no dot under it, but you can still see its window. Name two things that could explain this, and where you would check each one.
Show answer
Either the indicator setting is off, or the window belongs to a helper or another app. Check System Settings > Desktop & Dock > "Show indicators for open applications" for the first. For the second, right-click the icon and look at the window list, or check which app's name appears in the menu bar when you click the window.
Exercise
You want Slack's red unread count to stop appearing on its Dock icon without quitting Slack or removing it from the Dock. What do you change?
Show answer
Open System Settings > Notifications, choose Slack, and turn off "Badge app icon". The badge is controlled by the notification settings, not by the Dock.
Exercise
A browser is frozen. Describe how to force it to quit using only the Dock.
Show answer
Right-click the browser's icon to open its context menu, hold the Option key so Quit changes to Force Quit, then choose Force Quit. Unsaved work in that app is lost.