Still Dock
DemoProDownload
Download

How to lock the taskbar on a Mac

Coming from Windows: what the bar at the bottom is called, why there is no lock checkbox, and the other five things that are not the same. September 2026.

Short answer: the Mac has no taskbar. The strip of icons at the bottom is the Dock, and unlike Windows there is no "lock the taskbar" checkbox anywhere in System Settings. macOS has the settings, it just never gave them a switch.

Four Terminal commands do it, and they are below.

The name is the first problem

Search a Mac’s settings for "taskbar" and nothing comes back, which is why this is hard to look up. The vocabulary is different rather than the feature being missing:

  • Taskbar is the Dock.
  • Pin to taskbar is Keep in Dock.
  • The notification area is the menu bar, top right.
  • The Start menu is Launchpad, or Spotlight with ⌘Space.
  • Lock the taskbar has no equivalent switch at all, which is the rest of this page.

The menu bar along the top is a separate thing again, and it is not part of the Dock. Nothing below affects it.

Why there is no checkbox

Windows put "Lock the taskbar" in a right-click menu for years. macOS has never had that control, and looking for it is the reason most people give up.

What macOS does have is four settings that exist and work, and simply have no interface. Setting one makes the matching control in System Settings stop responding, which is the visible sign it took:

defaults write com.apple.dock size-immutable -bool true
defaults write com.apple.dock position-immutable -bool true
defaults write com.apple.dock contents-immutable -bool true
defaults write com.apple.dock autohide-immutable -bool true
killall Dock
  • size-immutable stops the Dock being resized. The divider between apps and folders is a drag handle, and brushing it rescales every icon with no undo.
  • position-immutable stops it being dragged to another edge.
  • contents-immutable stops icons being added, removed or reordered.
  • autohide-immutable pins the hide setting where it is.

Each is independent, so lock only what you want. To release one, remove the key rather than setting it to false:

defaults delete com.apple.dock position-immutable; killall Dock

killall Dock restarts the Dock so the change takes effect. It does not close your apps and loses nothing, which is covered in what killall Dock does. The full list of keys is in every Mac Dock defaults command.

If Terminal is not somewhere you want to be, the same four settings are switches in Still Dock, and the three ways compared covers what each approach costs.

Five other things that are not the same

Locking it is usually the first surprise. These are the next five, roughly in the order people meet them.

1. There is only one Dock, and it moves

Windows can put a taskbar on every monitor. macOS has exactly one Dock and it follows your pointer: push the cursor to the bottom edge of any screen and hold it there, and the Dock moves to that display.

There is no setting for this, and position-immutable does not help, because that governs which edge of a screen the Dock sits on, not which screen it is on. The workarounds and what each costs are in how to keep the Mac Dock on one screen.

2. It does not list your open windows

The Windows taskbar is a list of what is running. The Dock is mostly a launcher: it shows the apps you put there whether or not they are open, with a small dot under the ones that are running. Minimised windows collect at the right-hand end, past the divider.

The thing that actually lists open windows is Mission Control, on F3 or a three-finger swipe up.

3. The top edge is not available

The Dock can sit at the bottom, the left or the right. It cannot go along the top, because the menu bar lives there and macOS will not share that edge.

4. Removing an icon does not close the app

Dragging an icon out of the Dock removes the shortcut and nothing else. The app stays installed, and stays running if it was running. It vanishes in a puff of smoke, which is alarming the first time and reversible: find the app in Applications and drag it back, or open it and choose Keep in Dock.

On a Mac other people use, this is the one worth locking first. contents-immutable is what stops it.

5. Apps you have opened appear on their own

macOS adds a section of recently used applications to the right of the Dock, so a Dock you arranged deliberately grows a tail of everything you have opened since. It is a separate setting from the four above:

defaults write com.apple.dock show-recents -bool false
killall Dock

More on it in how to stop recent apps appearing in the Dock.

If you are setting up a Mac other people use

Everything above is stored per account, so it applies to the login you run it in. On a machine several people share, or one the public touches, the reasoning changes and there is a page for each case: a shared Mac, a family Mac, a classroom Mac.

Common questions

Is the Dock the same as the taskbar?

Not quite. It is the closest thing, but it is primarily a launcher rather than a list of open windows, and the notification area’s job belongs to the menu bar at the top instead.

Can I make the Dock look like the Windows taskbar?

You can move it to the bottom, turn off magnification and turn off recent apps, which gets close in feel. You cannot make it list every open window, because that is not what it is for. Mission Control is where that lives.

Where is "Lock the taskbar" in System Settings?

Nowhere. macOS has never shipped that control. The settings exist, which is why the commands above work, but Apple never gave them an interface.

Will these commands survive a restart or an update?

Yes. They are stored in your account’s preferences rather than in the system, so a restart, a sleep and a macOS update all leave them alone.

Do I need to be an administrator?

No. These are your own preferences and they apply only to your login.

Why did my Dock settings go gray?

That is these commands working: the controls stop responding once the matching key is set. If you did not set them and they are grey anyway, the grayed-out settings guide covers the other cause.

Product

  • Try it
  • What it locks
  • Pro
  • Two versions

Resources

  • Why I built it
  • Questions
  • Press kit
  • Release notes

Support

  • Help and contact
  • Hire me on Upwork

Other Apps I've Built

  • Reveal the Dream
  • MyLinedChart
  • The Long View
  • Keep the Diff
  • Copy Shelter
  • Prompt Petal
  • Little Bird Trading

Legal

  • Privacy Policy
  • Terms of Use
© 2026 Still Dock. A small Mac utility by Little Bird Trading LLC. Not affiliated with Apple Inc. Pro features shown.