Customizing the Mac OS X Dock

OS X’s Dock is a key part of the operating system that has helped define the Mac experience for over a decade, and as OS X has changed so too has Apple’s implementation of the Dock. Like many aspects of OS X, however, end users can customize the Dock to better suit their tastes and workflow. Here are some handy Terminal tricks for making the Dock your own.

Terminal

OS X Terminal App

All of these customization options rely on Terminal commands. Terminal is an application included in OS X that allows the user to, among other things, access and modify low-level settings in the operating system.

Terminal can be found in Applications > Utilities. You can either type the commands below directly into Terminal or copy and paste them. All commands are case sensitive. After entering each command press “Return” to submit it.

Because we’ll be modifying files that are in active use on the system, the changes won’t take place immediately. Therefore, after entering each command, type the following and press Return to quickly restart the Dock:

killall Dock

The Dock will disappear briefly and then reload with the changes now visible.

Enable 2D Dock Mode

For the first few years of its life, the OS X dock was a 2D row of icons that displayed applications, utilities, and folders. Starting with the release of OS X 10.5 Leopard in 2007, however, Apple changed the dock to feature a “3D” look, with the icons now resting on a 3D platform. Functionality generally remained the same, but many users prefer the 2D look over the 3D look.

2D Dock in OS X Pre-Leopard

To change the Dock back to “2D Mode,” enter the following Terminal command and press Return:

defaults write com.apple.dock no-glass -boolean YES

After pressing Return, remember to type “killall Dock” (see above) to force the change to take effect.

The 3D Default Dock in OS X 10.8 Mountain Lion

Although the 2D Dock looks a bit different than its predecessors in earlier versions of OS X, the change still gives user the general look they were missing. If you don’t like the new look and want to change back to the default 3D Dock, simply retype the Terminal commands above and replace “YES” at the end with “NO” (again, remember to type “killall Dock” afterwards to force the change to take effect).

The 2D Dock in 10.8 Mountain Lion

Show Only Active Applications

By default, OS X’s Dock displays all active applications as well as inactive applications and folders that the user wants to keep handy. Some users, however, may wish to limit the Dock to displaying only open and active applications. To do this, head back to Terminal and enter the following command:

defaults write com.apple.dock static-only -bool TRUE

Once the change takes effect, you’ll notice that your Dock is likely much smaller now, with only open applications displayed. In the following screenshots, the first image shows the Dock before entering the Terminal command. Finder, Mail, TweetBot, Safari, Pages, Activity Monitor, and Terminal are open, but all the other applications are still displayed.

Standard Dock Showing All Active and Inactive Items

After entering the Terminal command the Dock is much smaller, and only those open applications are displayed. This option is great for users who wish to use the Dock primarily as a tool for managing open applications while using another means, such as Spotlight, to actually launch applications.

OS X Dock Displaying Only Active Applications

To reverse the change, retype the Terminal command and replace “TRUE” with “FALSE”.

Change the Maximum Magnification Level

One of the “eye candy” features of OS X’s Dock is the Magnification option. This allows users to keep their Dock size very small while still being able to easily see and select applications when needed. Apple includes a slider to choose how big the “magnified” icons become with a default maximum of 128 pixels, but users can override that arbitrary maximum and set their own limit.

Default OS X Dock Magnification 128 Pixels

Return to Terminal and enter the following command:

defaults write com.apple.dock largesize -float 256

This will set the maximum to 256 pixels, as seen in the screenshot below.

Dock Magnification Set to 256 Pixels

You can also go nuts and set it even larger, to 512 pixels:

Dock Magnification Set to 512 Pixels

To reset the magnification level to the default size, enter this command:

defaults write com.apple.dock largesize -float 128

Granted, the usefulness of this command is limited but it is presented in the spirit of total customization.

Change the Dock’s Position

By default, the Dock sits centered in the middle of the screen. While you can’t move it to any arbitrary location, the following terminal commands allow you to pin the Dock to either then left or right side of the screen.

To position the Dock on the left side of the screen:

defaults write com.apple.dock pinning -string start

OS X Dock Pinned to Left Side of Screen

To position it on the right side of the screen:

defaults write com.apple.dock pinning -string end

OS X Dock Pinned to Right Side of Screen

To return the Dock to the default middle location:

defaults write com.apple.dock pinning -string middle

OS X Dock Pinned to Center of Screen

Note that this also works if you have your dock pinned vertically to the right or left of the screen using System Preferences > Dock > Position on Screen. In this configuration, “start” aligns the dock at the top of the screen while “end” places it at the bottom.

Dim Hidden App Icons

A useful feature of OS X’s window management is the ability to hide apps (Command-H). This leaves the app’s icon open in the Dock, but completely hides all of the app’s windows. By default, however, there is no indication via the Dock as to which apps are actually hidden compared to those with closed windows or windows that are buried underneath other applications.

Hidden Apps on the Dock

To change this, enter the following Terminal command, which will dim the icons of hidden applications:

defaults write com.apple.dock showhidden -bool true

In the second screenshot, below, Safari and Terminal are hidden after implementing this feature, and their icons are dimmed compared to the default setting. This allows users to easily see which apps are hidden without compromising the usefulness of the Dock. It’s frankly puzzling why Apple doesn’t enable this feature by default.

Dim Hidden Dock Icons

Use the Hidden “Suck” Animation to Minimize Windows

Users have two default options for the effect used when a window is minimized to the Dock: Scale and Genie. “Scale” does what its name implies and simply shrinks the application window down into the dock when minimized. “Genie” is a bit more interesting and distorts the window as it minimizes by pulling both bottom corners simultaneously.

Default Genie Animation OS X Dock

A hidden animation, “Suck,” can also be implemented with the following Terminal command:

defaults write com.apple.dock mineffect suck

This animation also distorts the window but appears to pull primarily from the bottom-right corner of the window. This results in a more interesting distortion of the window as it shrinks to the Dock, as if the window were indeed being “sucked” down from the bottom-right corner.

Hidden Suck Animation Dock OS X

To change the animation style again, you can reenter the command with “genie” or “scale” instead of “suck.” You can also change it by going to System Preferences > Dock > Minimize Window Using… and choose one of the default options.

Always Show Full Trash Icon

OS X’s Trash, like the Recycle Bin in Windows, has a dynamic icon that changes depending on its status. When there are no items in the Trash, the icon displays an empty trash can. When the user deletes an item, the icon immediately changes to show a trash can filled with paper.

In most situations, this is a useful visual indicator that something is in the Trash. For those who like a static icon, however, enter the following Terminal command to force the Trash to always display a full icon, even if there are no files inside:

defaults write com.apple.dock trash-full -bool YES

Always Show OS X Dock Trash Icon Full

After the change has take effect, you’ll notice that the Trash icon always looks full, regardless of whether any files are actually in the trash. To reverse the change, simply reenter the command and replace “YES” with “NO”.

Add a Recent Items Stack

Enter the following Terminal command to create a special stack on the right side of the Dock that contains recently-accessed items:

defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'

After it has been created, right-click (Control-click) on the stack to change its options. Users can choose to display the most recent Applications, Documents, or Servers, or user-defined favorite Servers and Items. You can also customize how the stack is displayed.

Recent Items Stack

To get rid of the stack, simply right-click on it and choose “Remove from Dock.”

Add Spacers to the Dock

The OS X Dock by default contains a single non-modifiable spacer between the applications portion on the left and the file, folder, and Trash portion on the right. Using the Terminal command below, however, users can add additional spacers to the Dock to help further organize and separate Dock items.

Open Terminal and enter the following command:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'

Once enabled, you’ll see a blank space appear on the right side of your Dock. Clicking on this space does nothing, but it can be dragged around the Dock like any other item.

Add Space to OS X Dock

Users can add multiple spaces by entering the Terminal command repeatedly. In the screenshot below, four spacers have been added and used to group Dock icons based on task (typing, communication, system tools, etc.).

Multiple Spaces Add to OS X Dock

To remove a spacer, simply drag it off the Dock or right-click on it and choose “Remove from Dock.”