You don't even need extra hotbars for this, or complicated macro setups. Here's a really simple macro setup you could try:
Combat Mode On
Combat Mode OffCode:/mlock /battlemode on /visor on /hotbar share 1 off /hotbar share 2 off /hotbar share 3 off
If using a controller, add a C to the beginning of the hotbar commands: /chotbar.Code:/battlemode off /visor off /hotbar share 1 on /hotbar share 2 on /hotbar share 3 on
Make both macros. Put them on a bar other than 1,2. Press Combat Mode Off when not in combat. Press Combat Mode On when entering combat. Note your visor and bar states will not change just by drawing or sheathing your weapon; you must activate the macro.
The visor switch is just there because people have asked for that in this kind of macro before. Switch visor on/off to match the state you want for combat. Hotbar share switches will temporarily hide your job bars. Activate Combat Mode to bring your job bars back. You can leave the out-of-combat bars blank if you want to hide them; or you can put things like travel abilities, mounts, emotes, etc. on them.
You can add additional hotbar number share switches if you want.
To create a toggle, place the On and Off macros in the same lot on one of the bars controlled by the macros. For example, while combat mode is Off, place the Combat Mode On macro in bar 3 slot 12. Then after turning combat mode On, place the Combat Mode Off macro in bar 3 slot 12. Since the bars are job specific when combat mode is on, you will need to put the Combat Mode Off macro in the same slot on all your jobs.