Access System prefs on mac

I'm trying to create a shortcut to enable/disable "Automatically hide and show the menu bar" in system/general. Is there a way to access it with KM?

Yes. You can embed some AppleScript in a KM execute AppleScript action.

I found a script by googling. It’s here: Show and hide the Mac menu bar using AppleScript

Bingo! Thanks for the help!