46

We know why it is moving: Why does my dock keep moving back to my other monitor?

Now, how can we stop it? Some terminal command or even paid software?

3 Answers 3

19

You cannot "just" stop it - unfortunately.

You have some options to keep it in the same place, but they have drawbacks:

A) Keep the dock on the left or right side of the desktop. That way it will stay in place.

or

B) In Preferences => Mission Control, uncheck "Displays have seperate spaces". Now the dock will stay in place, but you will loose the spaces functionality.

4
  • 3
    You don't lose Spaces functionality, merely change how it works. You would then have 2 displays in each Space & they will switch together rather than independently. For some people [me included], this is preferred functionality.
    – Tetsujin
    May 28, 2016 at 11:37
  • 5
    Yes, that's right - but depending on how you want it to work, you would loose the effect of having seperate spaces for each display. If you really want that, then you're out of luck. If you don't care for that, then this solution is really good.
    – jksoegaard
    May 28, 2016 at 13:16
  • 2
    The problem I'm seeing with losing the spaces functionality is that if you full screen an application the other displays go dark because they can't share a space with a fullscreen space. So instead of fullscreening an application you need to maximize it in a new space which has its own drawbacks. Or is there a way around that too?
    – Jens Bodal
    Oct 4, 2018 at 17:29
  • Looks like disabling the Preferences > Mission Control > "Displays have separate spaces" setting now also disables the menu bar on all other non-primary monitors too. The dock no longer switches monitors as you'd want though, so that part is at least still working as expected. Mar 28 at 1:22
1
sudo killall Dock

Worked for me like @Allan or @Scott Reed suggested above.

2
  • 1
    It would be helpful if you indicated how just killing the dock solved the issue. Oct 9, 2020 at 21:43
  • So it reads the new settings and does not require a reboot.
    – Martlark
    May 4, 2021 at 4:56
0

My solution is to create a new shortcut with ICanHazShortcut with the terminal command "killall Dock". When you press the shortcut key you designate, it will move the dock back to the primary monitor.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .