- Get the id of the app
osascript -e 'id of app "Ghostty"'
. - Then simply run
defaults write <com.example.app> -bool true
Or just do...
defaults write $(osascript -e 'id of app "App name"') AppleMenuBarVisibleInFullscreen -bool true
to reset
defaults delete com.example.app AppleMenuBarVisibleInFullscreen