Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jthodge
Created September 6, 2020 22:07
Show Gist options
  • Star 90 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save jthodge/c4ba15a78fb29671dfa072fe279355f0 to your computer and use it in GitHub Desktop.
Save jthodge/c4ba15a78fb29671dfa072fe279355f0 to your computer and use it in GitHub Desktop.
Show macOS app switcher across all monitors
defaults write com.apple.Dock appswitcher-all-displays -bool true
killall Dock
@chanana
Copy link

chanana commented Dec 13, 2021

I have this same problem i.e.

defaults write com.apple.Dock appswitcher-all-displays -bool true
killall Dock

followed by

defaults read com.apple.Dock appswitcher-all-displays

outputs 1

Edit: I have an M1 Macbook Air 2020 and am on macOS Monterey 12.0.1

@grigorye
Copy link

grigorye commented Dec 13, 2021

@chanana OK, I gave it a try with other newly created user account (guest one), and I can confirm that it still works there (i.e. I see "single" switcher at the beginning, and two switchers after running the above two commands) - if I get it correctly, such a user should have "default" settings... From that perspective, can you try checking it from guest as well?

Also, what is your monitor config? I have two external monitors connected to my Mac mini (over HDMI and display port).

@chanana
Copy link

chanana commented Dec 13, 2021

@grigorye You're right it does work on a new guest account with nothing else installed. I have rectangle installed for window management so that could be interfering with it?

Also, what is your monitor config?

I have one external monitor connected via a USB-C to DVI cable through a dock. The weird thing is, I've used this same config on a 16 in Macbook pro 2019 and it worked then

@grigorye
Copy link

I have rectangle installed for window management so that could be interfering with it?

Have no clue, frankly (did not use rectangle before), but I would try disabling 3rd parties one by one, until you see that it's working. I can imagine that it won't help, but it's worth checking. You could also try logging in into your user holding Shift or do something like that to exclude 3rd parties, just to quickly check if they're the problem.

I have one external monitor connected via a USB-C to DVI cable through a dock. The weird thing is, I've used this same config on a 16 in Macbook pro 2019 and it worked then

I see, I believe this just another hint that it might be software related, and not related to the hardware.

@jonathanbell
Copy link

Sorry for taking so long to reply here. I actually have the app switcher showing on both monitors now, after a reboot. I previously set the config twice (for good measure 🤷) with no effect:

$ defaults write com.apple.Dock appswitcher-all-displays -bool true
$ killall Dock

However running defaults read com.apple.Dock appswitcher-all-displays did not show me anything. Then, I ran defaults write com.apple.Dock appswitcher-all-displays -bool true; killall Dock; again, rebooted and then defaults read com.apple.Dock appswitcher-all-displays showed me 1 and the app switcher worked for me.

I have no idea why or how but I'm happy it's working...

@grigorye
Copy link

@chanana
Copy link

chanana commented Dec 29, 2021

It started working for me after a few reboots! 🤷‍♂️ Thanks for the help @jonathanbell @grigorye 🎉

@jonathanbell
Copy link

jonathanbell commented Dec 29, 2021 via email

@nicolycrispi
Copy link

Thank you!

@sarnobat
Copy link

I wish this was default behaviour!

@n3taway
Copy link

n3taway commented Mar 8, 2022

nice thanks👍

@IlyaEremin
Copy link

Didn't work for me: Macos 12.1 (21C52) macbook pro m1 2020 13'

@gregatgoogle
Copy link

Worked for me after a restart.

@ozozozd
Copy link

ozozozd commented Apr 18, 2022

MacBook Pro (16-inch, 2021) M1 Pro - Monterey 12.1

The following worked on the first try:
defaults write com.apple.Dock appswitcher-all-displays -bool true
killall Dock

@paulodeon
Copy link

Amazing!

Also worked for me on 12.4 Monterey, 16" M1 Macbook Pro

@brianc118
Copy link

Didn't work for me on 12.4 Monterey, 14" M1 Macbook Pro, even after reboot

@sanp
Copy link

sanp commented Jul 27, 2022

Initially, this was not working for me either (12.4 Monterey MacBook Pro 13-inch, M1, 2020). I guess the reason was that I had some other dock settings changes which were conflicting with this. What worked for me was resetting the dock to its default state and then running the above commands again.

To reset the dock to its default state:

defaults delete com.apple.dock; killall Dock

And then:

defaults write com.apple.Dock appswitcher-all-displays -bool true
killall Dock

This worked for me.

@philc
Copy link

philc commented Aug 17, 2022

I could not get this working on an M1 MacBook pro 12.4 Monterey, even with a restart. @sanp's fix worked for me. Thank you!

@legcan
Copy link

legcan commented Oct 19, 2022

Works for me on M1 Macbook Air 12.3 Monterey. No fix was needed.

@rhydlewis
Copy link

Alas, not working for me on a M1 Max MacBook Pro running Ventura 13.0.1 - anyone else managed to get this working on Ventura?

@MacDada
Copy link

MacDada commented Nov 22, 2022

defaults write com.apple.dock appswitcher-all-displays -bool true && killall Dock – works for me on Monterey

Make sure that dock in com.apple.dock is LOWERCASE – it didn't work for me with uppercase – probably because my file system is case sensitive.

@angelolucas
Copy link

defaults write com.apple.dock appswitcher-all-displays -bool true && killall Dock – works for me on Monterey

Make sure that dock in com.apple.dock is LOWERCASE – it didn't work for me with uppercase – probably because my file system is case sensitive.

dock written in lowercase worked for me. Thank you so much

@rhydlewis
Copy link

Works for me when dock written in lower case... thanks all 🙌

@jedrekdomanski
Copy link

Doesn't work on Ventura

@pmbuko
Copy link

pmbuko commented Jan 23, 2023

defaults write com.apple.dock appswitcher-all-displays -bool true && killall Dock works for me on Ventura. No reboot needed.

@cheerfulstoic
Copy link

OMG, this is awesome, thank you!

@tomfuertes
Copy link

Lowercase dock from this message finally worked for me on Ventura (Following 1+ years).

https://gist.github.com/jthodge/c4ba15a78fb29671dfa072fe279355f0?permalink_comment_id=4378478#gistcomment-4378478

@nadimkobeissi
Copy link

@tomfuertes

Lowercase dock from this message finally worked for me on Ventura

Thanks, lowercase dock worked for me too! This is the exact command I used:

defaults write com.apple.dock appswitcher-all-displays -bool true; killall Dock;

macOS 13.3.1, M1 Max.

@BShowen
Copy link

BShowen commented Jun 29, 2023

@alinoz
Copy link

alinoz commented Nov 24, 2023

@tomfuertes

Lowercase dock from this message finally worked for me on Ventura

Thanks, lowercase dock worked for me too! This is the exact command I used:

defaults write com.apple.dock appswitcher-all-displays -bool true; killall Dock;

macOS 13.3.1, M1 Max.

This worked for me - no reboot required
Sonoma 14.1.1, M2 Max 14"

thanks so much for everyone involved in the solution, very much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment