Disable floating menu when external display connected

Hello,

Idiot here with no idea how to do simple things. I'm a Bartender refugee, I only really need the floating menu bar when my Macbook isn't connected to an external display. So can anyone (in very simple terms) explain how I can either;

  • configure the floating menu to only activate when no external displays are connected.

or

  • configure a shorcut to disable the floating menu manually.

I've searched on this forum and not found an answer. Thanks!

You can create a conditional activation group and add the menu to that.

If you are always using the same external display with the same resolution, then it's easy and you can do a exact match on the activeScreenResolutions variable:

If you are using different external displays or different resolutions it's currently a bit tricky, but you can use this hack to count the commas in the activeScreenResolutions variable.
If exactly one display is connected there should be exactly 3 commas in that variable. This regex will only match in that case:

^[^,]*(,[^,]*){3}[^,]*$