On macOS Ventura I can control the menu bar behaviour by going into system settings --> Desktop & Doc. It gives me four options for visibility: "Always", "On Desktop Only", "In Full Screen Only", "Never". Is it possible to switch between these options using the command line?
defaults write
. Is this going to be part of a longer script?